docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class XRFocusInteractableExtensions

    Extension methods for IXRFocusInteractable.

    Inheritance
    object
    XRFocusInteractableExtensions
    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.Interactables
    Assembly: Unity.XR.Interaction.Toolkit.dll
    Syntax
    [MovedFrom("UnityEngine.XR.Interaction.Toolkit")]
    public static class XRFocusInteractableExtensions

    Methods

    GetOldestInteractorFocusing(IXRFocusInteractable)

    Gets the oldest interaction group currently focusing on this interactable. This is a convenience method for when the interactable does not support being focused by multiple interaction groups at a time.

    Declaration
    public static IXRInteractionGroup GetOldestInteractorFocusing(this IXRFocusInteractable interactable)
    Parameters
    Type Name Description
    IXRFocusInteractable interactable

    The interactable to operate on.

    Returns
    Type Description
    IXRInteractionGroup

    Returns the oldest interaction group currently focusing this interactable.

    Remarks

    Equivalent to interactionGroupsFocusing.Count > 0 ? interactionGroupsFocusing[0] : null

    See Also
    IXRFocusInteractable

    See Also

    IXRFocusInteractable
    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)