Class TeleportHotSpot
SDK component handling teleportation to a specific position & orientation when a user focuses this GameObject and triggers the teleport action.
Implements
Namespace: Microsoft.MixedReality.Toolkit.Teleport
Assembly: cs.temp.dll.dll
Syntax
public class TeleportHotSpot : BaseFocusHandler, IMixedRealityTeleportHotSpot
Properties
GameObjectReference
Returns the GameObject reference for this teleport target.
Declaration
public GameObject GameObjectReference { get; }
Property Value
Type | Description |
---|---|
GameObject |
IsActive
Is the teleport target active?
Declaration
public bool IsActive { get; }
Property Value
Type | Description |
---|---|
Boolean |
Normal
The normal of the teleport raycast.
Declaration
public Vector3 Normal { get; }
Property Value
Type | Description |
---|---|
Vector3 |
OverrideTargetOrientation
Should the target orientation be overridden?
Declaration
public bool OverrideTargetOrientation { get; }
Property Value
Type | Description |
---|---|
Boolean |
Position
The position the teleport will end at.
Declaration
public Vector3 Position { get; }
Property Value
Type | Description |
---|---|
Vector3 |
TargetOrientation
Should the destination orientation be overridden? Useful when you want to orient the user in a specific direction when they teleport to this position.
Declaration
public float TargetOrientation { get; }
Property Value
Type | Description |
---|---|
Single |
Remarks
Override orientation is the transform forward of the GameObject this component is attached to.
Methods
OnBeforeFocusChange(FocusEventData)
Declaration
public override void OnBeforeFocusChange(FocusEventData eventData)
Parameters
Type | Name | Description |
---|---|---|
FocusEventData | eventData |