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
LinePointer
Assembly: cs.temp.dll.dll
public class TeleportPointer : CurvePointer, IMixedRealityTeleportPointer, IMixedRealityTeleportHandler, IEventSystemHandler, LinePointer
Fields
Declaration
protected LayerMask InvalidLayers
Field Value
Type |
Description |
LayerMask |
|
Declaration
protected LayerMask InvalidLayers
Field Value
Type |
Description |
LayerMask |
|
Declaration
protected bool isTeleportRequestActive
Field Value
Declaration
protected bool isTeleportRequestActive
Field Value
Declaration
protected Gradient LineColorHotSpot
Field Value
Type |
Description |
Gradient |
|
Declaration
protected Gradient LineColorHotSpot
Field Value
Type |
Description |
Gradient |
|
Declaration
protected LayerMask ValidLayers
Field Value
Type |
Description |
LayerMask |
|
Declaration
protected LayerMask ValidLayers
Field Value
Type |
Description |
LayerMask |
|
Properties
Declaration
public DistorterGravity GravityDistorter { get; }
Property Value
Type |
Description |
DistorterGravity |
|
Declaration
public DistorterGravity GravityDistorter { get; }
Property Value
Type |
Description |
DistorterGravity |
|
Declaration
public override bool IsInteractionEnabled { get; }
Property Value
Declaration
public override bool IsInteractionEnabled { get; }
Property Value
Declaration
public float PointerOrientation { get; set; }
Property Value
Declaration
public float PointerOrientation { get; set; }
Property Value
Declaration
public IMixedRealityTeleportHotSpot TeleportHotSpot { get; set; }
Property Value
Declaration
public IMixedRealityTeleportHotSpot TeleportHotSpot { 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
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 |
|
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 Gradient GetLineGradient(TeleportSurfaceResult targetResult)
Parameters
Type |
Name |
Description |
TeleportSurfaceResult |
targetResult |
|
Returns
Type |
Description |
Gradient |
|
Declaration
protected override void OnDisable()
Declaration
protected override void OnDisable()
Declaration
protected override void OnEnable()
Declaration
protected override void OnEnable()
Declaration
public override void OnInputChanged(InputEventData<Vector2> eventData)
Parameters
Type |
Name |
Description |
InputEventData<Vector2> |
eventData |
|
Declaration
public override void OnInputChanged(InputEventData<Vector2> eventData)
Parameters
Type |
Name |
Description |
InputEventData<Vector2> |
eventData |
|
OnPostSceneQuery()
Declaration
public override void OnPostSceneQuery()
OnPostSceneQuery()
Declaration
public override void OnPostSceneQuery()
Declaration
public override void OnPreSceneQuery()
Declaration
public override void OnPreSceneQuery()
Declaration
public virtual void OnTeleportCanceled(TeleportEventData eventData)
Parameters
Declaration
public virtual void OnTeleportCanceled(TeleportEventData eventData)
Parameters
Declaration
public virtual void OnTeleportCompleted(TeleportEventData eventData)
Parameters
Declaration
public virtual void OnTeleportCompleted(TeleportEventData eventData)
Parameters
Declaration
public virtual void OnTeleportRequest(TeleportEventData eventData)
Parameters
Declaration
public virtual void OnTeleportRequest(TeleportEventData eventData)
Parameters
Declaration
public virtual void OnTeleportStarted(TeleportEventData eventData)
Parameters
Declaration
public virtual void OnTeleportStarted(TeleportEventData eventData)
Parameters
Declaration
protected override void Start()
Declaration
protected override void Start()
Implements
IMixedRealityTeleportPointer
IEventSystemHandler
LinePointer