Skip to main content

TeleportDestination

  • Abstract class. Has two concrete implementations: TeleportArea and TeleportAnchor

Public Fields

bool CanTeleportHere
Vector3 HitNormal
UnityEvent OnTeleportedToDestination
UnityEvent OnTeleportedFromDestination

Protected Fields

Vector3 teleportLocation

Public Methods

Vector3 GetTeleportLocation()
virtual void SetTeleportLocation(RaycastHit)

Implementations

  • Teleport freely on objects containing this component
  • Sets teleport location to raycastHit.point