Click or drag to resize

NavigationTeleport Method

Teleport the avatar to target position/rotation. Note: This method can return null, in which case there was no coroutine created to do the teleport

Namespace:  ImmerseSDK.Avatars
Assembly:  ImmerseSDK.App (in ImmerseSDK.App.dll) Version: 3.5.0.0 (3.5.0.0)
Syntax
C#
public UnityEngine.Coroutine Teleport(
	UnityEngine.Vector3 position,
	Nullable<UnityEngine.Quaternion> rotation,
	bool correctForPlaySpace,
	bool fade,
	bool overideTeleport = false
)

Parameters

position
Type: UnityEngine.Vector3
Target position
rotation
Type: SystemNullableUnityEngine.Quaternion
Target rotation
correctForPlaySpace
Type: SystemBoolean
True to move the head to this position, otherwise false to move center of playspace
fade
Type: SystemBoolean
Should it fade to black? If true, teleport happens on a coroutine, otherwise it's immediate
overideTeleport (Optional)
Type: SystemBoolean
Set true to stop any current teleportation

Return Value

Type: UnityEngine.Coroutine
Returns coroutine if fade is enabled
See Also