docs.unity.cn
    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
    Generated by DocFX
    on Tuesday, July 18, 2023