docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class XRSelectInteractorExtensions

    Extension methods for IXRSelectInteractor.

    Inheritance
    object
    XRSelectInteractorExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.XR.Interaction.Toolkit.Interactors
    Assembly: Unity.XR.Interaction.Toolkit.dll
    Syntax
    [MovedFrom("UnityEngine.XR.Interaction.Toolkit")]
    public static class XRSelectInteractorExtensions

    Methods

    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

    See Also

    IXRSelectInteractor
    In This Article
    Back to top
    Copyright © 2025 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)