docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method GetOldestInteractorFocusing

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