Click or drag to resize

ExampleTeleport Class

This example shows how to implement script-based avatar teleporting. Users can press a key to teleport themselves to a specific location within the scene.
Inheritance Hierarchy

Namespace:  ImmerseSDK.Examples
Assembly:  ImmerseSDK.NotInDll (in ImmerseSDK.NotInDll.dll) Version: 3.5.0.0 (3.5.0.0)
Syntax
C#
public class ExampleTeleport : ExampleBase

The ExampleTeleport type exposes the following members.

Constructors
  NameDescription
Public methodExampleTeleport
Initializes a new instance of the ExampleTeleport class
Top
Methods
  NameDescription
Protected methodGetNextTargetIndex
Gets the next index
Protected methodStart
Make the Unity Start method a coroutine, so it can yield while the ImmerseSDK is initialising
(Overrides ExampleBaseStart.)
Protected methodTeleportAvatar
Teleports the user to the next index in the array
Protected methodUpdate
Standard Unity Update method
Top
Fields
  NameDescription
Public fieldteleportTargets
List of transforms in the scene
Top
Extension Methods
  NameDescription
Public Extension MethodGetCopyOf
Copies all properties of a component from source to target. Uses reflection to set properties.
(Defined by ComponentExtensions.)
Public Extension MethodWaitForT
Waits for a singleton on a coroutine
(Defined by SingletonManager.)
Top
See Also