Class LinePointer
A simple line pointer for drawing lines from the input source origin to the current pointer position.
Inheritance
LinePointer
Implements
IMixedRealityInputHandler<Vector2>
IMixedRealityInputHandler<Vector3>
IMixedRealityInputHandler<Quaternion>
IMixedRealityInputHandler<MixedRealityPose>
IEventSystemHandler
IEqualityComparer
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.Input
Assembly: cs.temp.dll.dll
Syntax
public class LinePointer : BaseControllerPointer, IMixedRealityControllerPoseSynchronizer, IMixedRealitySourcePoseHandler, IMixedRealitySourceStateHandler, IMixedRealityInputHandler, IMixedRealityBaseInputHandler, IMixedRealityInputHandler<float>, IMixedRealityInputHandler<Vector2>, IMixedRealityInputHandler<Vector3>, IMixedRealityInputHandler<Quaternion>, IMixedRealityInputHandler<MixedRealityPose>, IEventSystemHandler, IMixedRealityPointer, IEqualityComparer
Fields
LineColorInvalid
Declaration
protected Gradient LineColorInvalid
Field Value
Type | Description |
---|---|
Gradient |
LineColorLockFocus
Declaration
protected Gradient LineColorLockFocus
Field Value
Type | Description |
---|---|
Gradient |
LineColorNoTarget
Declaration
protected Gradient LineColorNoTarget
Field Value
Type | Description |
---|---|
Gradient |
LineColorSelected
Declaration
protected Gradient LineColorSelected
Field Value
Type | Description |
---|---|
Gradient |
LineColorValid
Declaration
protected Gradient LineColorValid
Field Value
Type | Description |
---|---|
Gradient |
Properties
IsInteractionEnabled
Is the pointer active and have the conditions for the interaction been satisfied to enable the interaction?
Declaration
public override bool IsInteractionEnabled { get; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
LineBase
The Line Data Provider driving this pointer.
Declaration
public BaseMixedRealityLineDataProvider LineBase { get; }
Property Value
Type | Description |
---|---|
BaseMixedRealityLineDataProvider |
LineRenderers
The current line renderers that this pointer is utilizing.
Declaration
public BaseMixedRealityLineRenderer[] LineRenderers { get; }
Property Value
Type | Description |
---|---|
BaseMixedRealityLineRenderer[] |
Remarks
If no line renderers are specified, this array will be auto-populated on startup.
Methods
OnDisable()
Declaration
protected override void OnDisable()
Overrides
OnEnable()
Declaration
protected override void OnEnable()
Overrides
OnPostSceneQuery()
Called after performing the scene query.
Declaration
public override void OnPostSceneQuery()
Overrides
OnPreSceneQuery()
Called before performing the scene query.
Declaration
public override void OnPreSceneQuery()
Overrides
PostUpdateLineRenderers()
Declaration
protected virtual void PostUpdateLineRenderers()
PreUpdateLineRenderers()
Declaration
protected virtual void PreUpdateLineRenderers()
SetLinePoints(Vector3, Vector3)
Declaration
protected void SetLinePoints(Vector3 startPoint, Vector3 endPoint)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | startPoint | |
Vector3 | endPoint |
UpdateRays()
Declaration
protected virtual void UpdateRays()
Implements
IEventSystemHandler
IEqualityComparer