docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method GetInteractor

    GetInteractor(int)

    Gets an IUIInteractor from its corresponding Unity UI Pointer Id. This can be used to identify individual Interactors from the underlying UI Events.

    Declaration
    public IUIInteractor GetInteractor(int pointerId)
    Parameters
    Type Name Description
    int pointerId

    A unique integer representing an object that can point at UI.

    Returns
    Type Description
    IUIInteractor

    Returns the interactor associated with pointerId. Returns null if no Interactor is associated (e.g. if it's a mouse event).

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)