docs.unity.cn
    Show / Hide Table of Contents

    Class XRFocusInteractableExtensions

    Extension methods for IXRFocusInteractable.

    Inheritance
    Object
    XRFocusInteractableExtensions
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEngine.XR.Interaction.Toolkit
    Syntax
    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
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Monday, July 24, 2023