docs.unity3d.com
Search Results for

    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.handedness
    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.Interactors
    Assembly: Unity.XR.Interaction.Toolkit.dll
    Syntax
    [MovedFrom("UnityEngine.XR.Interaction.Toolkit")]
    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
    See Also
    InteractorSelectValidTargets(IXRSelectInteractor, List<IXRInteractable>)
    IsHighestPriorityTarget(IXRSelectInteractable, List<IXRTargetPriorityInteractor>)
    GetValidTargets(List<IXRInteractable>)

    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.

    See Also
    InteractorSelectValidTargets(IXRSelectInteractor, List<IXRInteractable>)
    IsHighestPriorityTarget(IXRSelectInteractable, List<IXRTargetPriorityInteractor>)
    GetValidTargets(List<IXRInteractable>)

    Extension Methods

    XRInteractorExtensions.IsBlockedByInteractionWithinGroup(IXRInteractor)

    See Also

    InteractorSelectValidTargets(IXRSelectInteractor, List<IXRInteractable>)
    IsHighestPriorityTarget(IXRSelectInteractable, List<IXRTargetPriorityInteractor>)
    GetValidTargets(List<IXRInteractable>)
    In This Article
    Back to top
    Copyright © 2025 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)