Class ClimbInteractable
Interactable that can be climbed while selected.
Implements
Inherited Members
Namespace: UnityEngine.XR.Interaction.Toolkit
Assembly: solution.dll
Syntax
[SelectionBase]
[DisallowMultipleComponent]
[RequireComponent(typeof(Rigidbody))]
[AddComponentMenu("XR/Climb Interactable", 11)]
[HelpURL("https://docs.unity.cn/Packages/com.unity.xr.interaction.toolkit@3.0/api/UnityEngine.XR.Interaction.Toolkit.ClimbInteractable.html")]
public class ClimbInteractable : XRBaseInteractable, IXRActivateInteractable, IXRHoverInteractable, IXRSelectInteractable, IXRFocusInteractable, IXRInteractionStrengthInteractable, IXRInteractable, IXROverridesGazeAutoSelect
Properties
| Name | Description |
|---|---|
| climbAssistanceTeleportVolume | The teleport volume used to assist with movement to a specific destination after ending a climb (optional, may be null). If there is a ClimbTeleportInteractor in the scene that references the same ClimbProvider as this interactable, it will interact with the volume while this interactable is being climbed. |
| climbProvider | The climb provider that performs locomotion while this interactable is selected. If no climb provider is configured, will attempt to find one. |
| climbSettingsOverride | Optional override of climb locomotion settings specified in the climb provider. Only applies as an override if Unity.XR.CoreUtils.Datums.DatumProperty<TValue, TDatum>.Value is not null. |
| climbTransform | Transform that defines the coordinate space for climb locomotion. Will use this GameObject's Transform by default. |
| filterInteractionByDistance | Controls whether to apply a distance check when validating hover and select interaction. |
| maxInteractionDistance | The maximum distance that an interactor can be from this interactable to begin hover or select. Only applies when filterInteractionByDistance is true. |
Methods
| Name | Description |
|---|---|
| Awake() | See MonoBehaviour. |
| IsHoverableBy(IXRHoverInteractor) | Determines if a given Interactor can hover over this Interactable. |
| IsSelectableBy(IXRSelectInteractor) | Determines if a given Interactor can select this Interactable. |
| OnSelectEntered(SelectEnterEventArgs) | The XRInteractionManager calls this method when the Interactor first initiates selection of an Interactable in a second pass. |
| OnSelectExited(SelectExitEventArgs) | The XRInteractionManager calls this method when the Interactor ends selection of an Interactable in a second pass. |
| OnValidate() | See MonoBehaviour. |
| Reset() | See MonoBehaviour. |