Class TeleportPointer
Implementation for teleportation pointer to support movement based on teleport raycasts and requests with the MRTK Teleport system
Inheritance
TeleportPointer
Implements
IMixedRealityTeleportPointer
IEventSystemHandler
Assembly: cs.temp.dll.dll
public class TeleportPointer : CurvePointer, IMixedRealityTeleportPointer, IMixedRealityTeleportHandler, IEventSystemHandler
Fields
Declaration
protected LayerMask InvalidLayers
Field Value
Type |
Description |
LayerMask |
|
Declaration
protected bool isTeleportRequestActive
Field Value
Declaration
protected Gradient LineColorHotSpot
Field Value
Type |
Description |
Gradient |
|
Declaration
protected LayerMask ValidLayers
Field Value
Type |
Description |
LayerMask |
|
Properties
Declaration
public DistorterGravity GravityDistorter { get; }
Property Value
Type |
Description |
DistorterGravity |
|
Declaration
public override bool IsInteractionEnabled { get; }
Property Value
Declaration
public float PointerOrientation { get; set; }
Property Value
Declaration
public IMixedRealityTeleportHotSpot TeleportHotSpot { get; set; }
Property Value
Teleport pointer cursor visibility if pointer is focused on hotspot
Declaration
public bool TeleportHotSpotCursorVisibility { get; set; }
Property Value
Teleport Pointer will only respond to input events for teleportation that match this MixedRealityInputAction
Declaration
public MixedRealityInputAction TeleportInputAction { get; }
Property Value
Type |
Description |
MixedRealityInputAction |
|
True if a teleport request is being raised, false otherwise.
Declaration
public bool TeleportRequestRaised { get; }
Property Value
The result from the last raycast.
Declaration
public TeleportSurfaceResult TeleportSurfaceResult { get; }
Property Value
Type |
Description |
TeleportSurfaceResult |
|
Methods
Declaration
protected Gradient GetLineGradient(TeleportSurfaceResult targetResult)
Parameters
Type |
Name |
Description |
TeleportSurfaceResult |
targetResult |
|
Returns
Type |
Description |
Gradient |
|
Declaration
protected override void OnDisable()
Declaration
protected override void OnEnable()
Declaration
public override void OnInputChanged(InputEventData<Vector2> eventData)
Parameters
Type |
Name |
Description |
InputEventData<Vector2> |
eventData |
|
OnPostSceneQuery()
Declaration
public override void OnPostSceneQuery()
Declaration
public override void OnPreSceneQuery()
Raised when a teleport request has been canceled.
Declaration
public virtual void OnTeleportCanceled(TeleportEventData eventData)
Parameters
Raised when a teleport has successfully completed.
Declaration
public virtual void OnTeleportCompleted(TeleportEventData eventData)
Parameters
Raised when a pointer requests a teleport target, but no teleport has begun.
Declaration
public virtual void OnTeleportRequest(TeleportEventData eventData)
Parameters
Raised when a teleport has started.
Declaration
public virtual void OnTeleportStarted(TeleportEventData eventData)
Parameters
Declaration
public override void Reset()
Declaration
protected override void Start()
Implements
IMixedRealityTeleportPointer
IEventSystemHandler