docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method ShouldOverrideActiveInteraction

    ShouldOverrideActiveInteraction(out IXRSelectInteractor)

    Checks whether the Group should end the interactions of the activeInteractor and instead prioritize an override interactor for interaction. An interactor should only override if it exists in the set of override Group members for the active member and is capable of selecting any interactable that activeInteractor is interacting with. If multiple Group members are capable of overriding, only the highest priority one should override.

    Declaration
    bool ShouldOverrideActiveInteraction(out IXRSelectInteractor overridingInteractor)
    Parameters
    Type Name Description
    IXRSelectInteractor overridingInteractor

    The interactor that should override interaction.

    Returns
    Type Description
    bool

    Returns true if the Group should end the interactions of the activeInteractor and instead prioritize an override interactor for interaction. Otherwise, returns false.

    Remarks

    The implementation of UpdateGroupMemberInteractions(IXRInteractor, out IXRInteractor) should call this method at the start to determine whether overridingInteractor should override the pre-prioritized interactor. The implementation of this method should call ShouldAnyMemberOverrideInteraction(IXRInteractor, out IXRSelectInteractor) on each override 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)