API reference
API reference
Select your platform
No SDKs available
No versions available

TeleportInteractable Class

Makes an object a teleport hotspot.

Properties

Indicates if the interactable is valid for teleport.
Setting it to false can be convenient to block the arc.
An override for the Interactor EqualDistanceThreshold used when comparing the interactable against other interactables that does not allow teleport.
Establishes the priority when several interactables are hit at the same time (EqualDistanceThreshold) by the arc.
ISurface Surface[Get]
IBounds SurfaceBounds[Get]
When true, the player will also face the direction specified by the target point.
When true, instead of aligning the players feet to the TargetPoint it will align the head.

Protected Functions

virtual override void Awake ( )
virtual override void Start ( )

Member Functions

Determines if a <cref="TeleportInteractor" /> is close enough to target this interactable.
Detects a hit from the teleport raycast on the object.
Used when the interactor is looking for a teleport target.
If you specify a target point, it'll use that. Otherwise it uses wherever the teleport arc is pointing.
Sets all required values for a <cref="TeleportInteractable" /> for a dynamically instantiated GameObject.
Sets an <cref="ISurface" /> for a dynamically instantiated GameObject.
Sets a target point for a dynamically instantiated GameObject.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon