docs.unity3d.com
    Show / Hide Table of Contents

    Interface IXRTargetPriorityInteractor

    An interface that represents an Interactor component that monitors the Interactables with priority for selection in a frame (called Targets), useful for custom feedback.

    Inherited Members
    IXRInteractor.registered
    IXRInteractor.unregistered
    IXRInteractor.interactionLayers
    IXRInteractor.transform
    IXRInteractor.GetAttachTransform(IXRInteractable)
    IXRInteractor.GetValidTargets(List<IXRInteractable>)
    IXRInteractor.OnRegistered(InteractorRegisteredEventArgs)
    IXRInteractor.OnUnregistered(InteractorUnregisteredEventArgs)
    IXRInteractor.PreprocessInteractor(XRInteractionUpdateOrder.UpdatePhase)
    IXRInteractor.ProcessInteractor(XRInteractionUpdateOrder.UpdatePhase)
    Namespace: UnityEngine.XR.Interaction.Toolkit
    Syntax
    public interface IXRTargetPriorityInteractor : IXRInteractor

    Properties

    targetPriorityMode

    Specifies how many Interactables should be monitored in the targetsForSelection property.

    Declaration
    TargetPriorityMode targetPriorityMode { get; }
    Property Value
    Type Description
    TargetPriorityMode

    targetsForSelection

    The Interactables with priority for selection in the current frame, some Interactables might be already selected. This list is sorted by priority (with highest priority first). How many Interactables appear in this list is configured by the targetPriorityMode property.

    Declaration
    List<IXRSelectInteractable> targetsForSelection { get; }
    Property Value
    Type Description
    List<IXRSelectInteractable>
    Remarks

    Unity automatically clears and updates this list every frame if targetPriorityMode has a value different from None, in this case a valid list must be returned.

    Extension Methods

    XRInteractorExtensions.IsBlockedByInteractionWithinGroup(IXRInteractor)

    See Also

    InteractorSelectValidTargets(IXRSelectInteractor, List<IXRInteractable>)
    IsHighestPriorityTarget(IXRSelectInteractable, List<IXRTargetPriorityInteractor>)
    GetValidTargets(List<IXRInteractable>)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023