docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method ShouldAnyMemberOverrideInteraction

    ShouldAnyMemberOverrideInteraction(IXRInteractor, out IXRSelectInteractor)

    Checks whether any member of the Group should override the interactions of interactingInteractor. An interactor should only override if it is capable of selecting any interactable that interactingInteractor is interacting with. If multiple Group members are capable of overriding, only the highest priority one should override.

    Declaration
    bool ShouldAnyMemberOverrideInteraction(IXRInteractor interactingInteractor, out IXRSelectInteractor overridingInteractor)
    Parameters
    Type Name Description
    IXRInteractor interactingInteractor

    The interactor that is interacting with an interactable.

    IXRSelectInteractor overridingInteractor

    The interactor that should override interaction.

    Returns
    Type Description
    bool

    Returns true if any member of the Group should override the interactions of interactingInteractor. Otherwise, returns false.

    Remarks

    The implementation of this method should call this method on each Group member that is an IXRInteractionOverrideGroup.

    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)