docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Interface IXRInteractionOverrideGroup

    An interface that represents an Interaction Group component that is capable of overriding the interaction of the activeInteractor when another interactor tries to select any of the interactables being hovered or selected. An interactor can only override interaction when it is or is contained within a Group member that is configured as a possible override for the active Group member.

    Inherited Members
    IXRInteractionGroup.registered
    IXRInteractionGroup.unregistered
    IXRInteractionGroup.groupName
    IXRInteractionGroup.activeInteractor
    IXRInteractionGroup.focusInteractor
    IXRInteractionGroup.focusInteractable
    IXRInteractionGroup.OnRegistered(InteractionGroupRegisteredEventArgs)
    IXRInteractionGroup.OnBeforeUnregistered()
    IXRInteractionGroup.OnUnregistered(InteractionGroupUnregisteredEventArgs)
    IXRInteractionGroup.AddGroupMember(IXRGroupMember)
    IXRInteractionGroup.MoveGroupMemberTo(IXRGroupMember, int)
    IXRInteractionGroup.RemoveGroupMember(IXRGroupMember)
    IXRInteractionGroup.ClearGroupMembers()
    IXRInteractionGroup.ContainsGroupMember(IXRGroupMember)
    IXRInteractionGroup.GetGroupMembers(List<IXRGroupMember>)
    IXRInteractionGroup.HasDependencyOnGroup(IXRInteractionGroup)
    IXRInteractionGroup.PreprocessGroupMembers(XRInteractionUpdateOrder.UpdatePhase)
    IXRInteractionGroup.ProcessGroupMembers(XRInteractionUpdateOrder.UpdatePhase)
    IXRInteractionGroup.UpdateGroupMemberInteractions()
    IXRInteractionGroup.UpdateGroupMemberInteractions(IXRInteractor, out IXRInteractor)
    IXRInteractionGroup.OnFocusEntering(FocusEnterEventArgs)
    IXRInteractionGroup.OnFocusExiting(FocusExitEventArgs)
    Namespace: UnityEngine.XR.Interaction.Toolkit
    Assembly: solution.dll
    Syntax
    public interface IXRInteractionOverrideGroup : IXRInteractionGroup

    Methods

    Name Description
    AddInteractionOverrideForGroupMember(IXRGroupMember, IXRGroupMember)

    Adds overrideGroupMember as a possible interaction override for sourceGroupMember.

    ClearInteractionOverridesForGroupMember(IXRGroupMember)

    Clears the set of possible interaction overrides for sourceGroupMember.

    GetInteractionOverridesForGroupMember(IXRGroupMember, HashSet<IXRGroupMember>)

    Returns all members in the set of possible interaction overrides for sourceGroupMember into set results.

    GroupMemberIsPartOfOverrideChain(IXRGroupMember, IXRGroupMember)

    Checks whether potentialOverrideGroupMember is either the same as sourceGroupMember or part of a chain of its override Group members and their overrides.

    RemoveInteractionOverrideForGroupMember(IXRGroupMember, IXRGroupMember)

    Removes overrideGroupMember as a possible interaction override for sourceGroupMember.

    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.

    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.

    See Also

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