Class TeleportationProvider
The TeleportationProvider is responsible for moving the XR Origin to the desired location on the user's request.
Inheritance
Inherited Members
Namespace: UnityEngine.XR.Interaction.Toolkit
Assembly: solution.dll
Syntax
[AddComponentMenu("XR/Locomotion/Teleportation Provider", 11)]
[HelpURL("https://docs.unity.cn/Packages/com.unity.xr.interaction.toolkit@3.0/api/UnityEngine.XR.Interaction.Toolkit.TeleportationProvider.html")]
public class TeleportationProvider : LocomotionProvider
Properties
| Name | Description |
|---|---|
| canStartMoving | Whether the provider has finished preparing for locomotion and is ready to enter the Moving state. This only applies when locomotionState is Preparing, so there is no need for this implementation to query locomotionState. |
| currentRequest | The current teleportation request. |
| delayTime | The time (in seconds) to delay the teleportation once it is activated. This delay can be used, for example, as time to set a tunneling vignette effect as a VR comfort option. |
| forwardTransformation | The transformation that is used by this component to apply forward vector orientation. |
| positionTransformation | The transformation that is used by this component to apply teleport positioning movement. |
| upTransformation | The transformation that is used by this component to apply up vector orientation. |
| validRequest | Whether the current teleportation request is valid. |
Methods
| Name | Description |
|---|---|
| QueueTeleportRequest(TeleportRequest) | This function will queue a teleportation request within the provider. |
| Update() | See MonoBehaviour. |