forceteleport - eisclimber/ExPresS-XR GitHub Wiki

ForceTeleport

Class in ExPresSXR.Movement

Inherits from UnityEngine.MonoBehaviour

Summary

Forces a manual teleportation.

public class ForceTeleport : MonoBehaviour

Fields

Name Description
OnForceTeleport Emitted if a teleport is requested. This will also be the moment a teleport without fade is performed.
OnFullyFaded Emitted once the player's vision is fully faded and the teleport with fade is happening.

Methods

Name Description
CancelTeleport() Cancels a teleport. Only effective for teleports with fade.
DefaultTeleportTo() Teleports the player to the default target without fade.
DefaultTeleportToWithFade() Teleports the player to the default target with fade.
TeleportTo(Transform,bool) Teleports the player to the target with optional fade.
TeleportTo(Transform) Teleports the player to the target without fade.
TeleportTo(Vector3,Quaternion,bool) Teleports the player to the given position and rotation with optional fade.
TeleportToWithFade(Transform) Teleports the player to the target with fade.
⚠️ **GitHub.com Fallback** ⚠️