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
Namespace: UnityEngine.XR.Interaction.Toolkit
Assembly: Unity.XR.Interaction.Toolkit.dll
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 |
See Also
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.