docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method GetOldestInteractableSelected

    GetOldestInteractableSelected(IXRSelectInteractor)

    Gets the oldest Interactable currently selected. This is a convenience method for when the Interactor does not support selecting multiple interactables at a time.

    Declaration
    public static IXRSelectInteractable GetOldestInteractableSelected(this IXRSelectInteractor interactor)
    Parameters
    Type Name Description
    IXRSelectInteractor interactor

    The Interactor to operate on.

    Returns
    Type Description
    IXRSelectInteractable

    Returns the oldest Interactable currently selected.

    Remarks

    Equivalent to

    interactablesSelected.Count > 0 ? interactablesSelected[0] : null
    See Also
    interactablesSelected
    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)