TeleportHotspot Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
SDK component handling teleportation to a specific position & orientation when a user focuses this GameObject and triggers the teleport action.
public ref class TeleportHotspot : Microsoft::MixedReality::Toolkit::Input::BaseFocusHandler, Microsoft::MixedReality::Toolkit::Teleport::IMixedRealityTeleportHotspot
public ref class TeleportHotSpot : Microsoft::MixedReality::Toolkit::Input::BaseFocusHandler, Microsoft::MixedReality::Toolkit::Teleport::IMixedRealityTeleportHotSpot
public class TeleportHotspot : Microsoft.MixedReality.Toolkit.Input.BaseFocusHandler, Microsoft.MixedReality.Toolkit.Teleport.IMixedRealityTeleportHotspot
[UnityEngine.AddComponentMenu("Scripts/MRTK/SDK/TeleportHotSpot")]
public class TeleportHotspot : Microsoft.MixedReality.Toolkit.Input.BaseFocusHandler, Microsoft.MixedReality.Toolkit.Teleport.IMixedRealityTeleportHotspot
type TeleportHotspot = class
inherit BaseFocusHandler
interface IMixedRealityTeleportHotspot
[<UnityEngine.AddComponentMenu("Scripts/MRTK/SDK/TeleportHotSpot")>]
type TeleportHotspot = class
inherit BaseFocusHandler
interface IMixedRealityTeleportHotspot
Public Class TeleportHotspot
Inherits BaseFocusHandler
Implements IMixedRealityTeleportHotspot
Public Class TeleportHotSpot
Inherits BaseFocusHandler
Implements IMixedRealityTeleportHotSpot
- Inheritance
- Attributes
-
UnityEngine.AddComponentMenuAttribute
- Implements
-
IMixedRealityTeleportHotspot Microsoft.MixedReality.Toolkit.Teleport.IMixedRealityTeleportHotSpot
Constructors
TeleportHotspot() |
Properties
FocusEnabled |
Is focus enabled for this Component? (Inherited from BaseFocusHandler) |
Focusers |
The list of IMixedRealityPointers that are currently focused on this GameObject (Inherited from BaseFocusHandler) |
GameObjectReference |
Returns the GameObject reference for this teleport target. |
HasFocus |
Does this object currently have focus by any IMixedRealityPointer? (Inherited from BaseFocusHandler) |
IsActive |
Determines whether the teleport target is active |
Normal |
The normal of the teleport raycast. |
OverrideOrientation |
Whether to override the user's rotation on the y-axis with the hotspots TargetRotation |
Position |
The position the teleport will end at. |
TargetRotation |
The rotation in angles around the y axis to set the user after teleport |
Methods
OnBeforeFocusChange(FocusEventData) |
Focus event that is raised before the focus is actually changed. |
OnFocusChanged(FocusEventData) |
Focus event that is raised when the focused object is changed. (Inherited from BaseFocusHandler) |
OnFocusEnter(FocusEventData) |
The Focus Enter event is raised on this GameObject whenever a IMixedRealityPointer's focus enters this GameObject's Collider. (Inherited from BaseFocusHandler) |
OnFocusExit(FocusEventData) |
The Focus Exit event is raised on this GameObject whenever a IMixedRealityPointer's focus leaves this GameObject's Collider. (Inherited from BaseFocusHandler) |