Class ClimbTeleportInteractor
Interactor that drives climb locomotion assistance via teleportation. This interactor responds to the user grabbing a ClimbInteractable that references the same ClimbProvider as this interactor.
Inheritance
Implements
Inherited Members
Namespace: UnityEngine.XR.Interaction.Toolkit
Assembly: solution.dll
Syntax
[AddComponentMenu("XR/Locomotion/Climb Teleport Interactor", 11)]
[HelpURL("https://docs.unity.cn/Packages/com.unity.xr.interaction.toolkit@3.0/api/UnityEngine.XR.Interaction.Toolkit.ClimbTeleportInteractor.html")]
public class ClimbTeleportInteractor : XRBaseInteractor, IXRHoverInteractor, IXRSelectInteractor, IXRTargetPriorityInteractor, IXRGroupMember, IXRInteractionStrengthInteractor, IXRActivateInteractor, IXRInteractor
Remarks
If the climb interactable's climbAssistanceTeleportVolume is not null, the interactor will hover the teleport volume while the user is grabbing the climb interactable, otherwise the interactor will do nothing. When climb locomotion ends, the interactor will trigger teleportation to the evaluated destination by starting and immediately ending either a select or activate interaction, depending on the teleport volume's teleportTrigger. The interactor will also stop hovering the teleport volume the next frame after teleporting.
Properties
| Name | Description |
|---|---|
| climbProvider | The climb locomotion provider to query for active locomotion and climbed interactable. |
| destinationEvaluationSettings | Optional settings for how the hovered teleport volume evaluates a destination anchor. Applies as an override to the destinationEvaluationSettings of the climbed interactable's climbAssistanceTeleportVolume if Unity.XR.CoreUtils.Datums.DatumProperty<TValue, TDatum>.Value is not null. |
| isSelectActive | (Read Only) Indicates whether this Interactor is in a state where it could select. |
| shouldActivate | (Read Only) Indicates whether this interactor is in a state where it should send the activate event this frame. |
| shouldDeactivate | (Read Only) Indicates whether this interactor is in a state where it should send the deactivate event this frame. |
Methods
| Name | Description |
|---|---|
| GetActivateTargets(List<IXRActivateInteractable>) | Retrieve the list of Interactables that this Interactor could possibly activate or deactivate this frame. |
| GetValidTargets(List<IXRInteractable>) | Retrieve the list of Interactables that this Interactor could possibly interact with this frame. This list is sorted by priority (with highest priority first). |
| OnDisable() | See MonoBehaviour. |
| OnEnable() | See MonoBehaviour. |