docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method IsSelected

    IsSelected(IXRSelectInteractor)

    Determines whether this Interactable is currently being selected by the Interactor.

    Declaration
    public bool IsSelected(IXRSelectInteractor interactor)
    Parameters
    Type Name Description
    IXRSelectInteractor interactor

    Interactor to check.

    Returns
    Type Description
    bool

    Returns true if this Interactable is currently being selected by the Interactor. Otherwise, returns .

    Remarks

    In other words, returns whether interactorsSelecting contains interactor.

    See Also
    interactorsSelecting

    IsSelected(IXRInteractor)

    Determines whether this Interactable is currently being selected by the Interactor.

    Declaration
    protected bool IsSelected(IXRInteractor interactor)
    Parameters
    Type Name Description
    IXRInteractor interactor

    Interactor to check.

    Returns
    Type Description
    bool

    Returns true if this Interactable is currently being selected by the Interactor. Otherwise, returns .

    Remarks

    In other words, returns whether interactorsSelecting contains interactor.

    See Also
    interactorsSelecting
    IsSelected(IXRSelectInteractor)
    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)