Class GazeProvider
This class provides Gaze as an Input Source so users can interact with objects using their head.
Implements
MonoBehaviour
IEventSystemHandler
Assembly: cs.temp.dll.dll
public class GazeProvider : InputSystemGlobalHandlerListener, MonoBehaviour, IMixedRealityEyeGazeProvider, IMixedRealityGazeProvider, IMixedRealityInputHandler, IMixedRealityBaseInputHandler, IEventSystemHandler, IMixedRealityGazeProviderHeadOverride
Properties
Declaration
public bool Enabled { get; set; }
Property Value
Declaration
public bool Enabled { get; set; }
Property Value
Declaration
public GameObject GameObjectReference { get; }
Property Value
Type |
Description |
GameObject |
|
Declaration
public GameObject GameObjectReference { get; }
Property Value
Type |
Description |
GameObject |
|
Declaration
public IMixedRealityCursor GazeCursor { get; }
Property Value
Declaration
public IMixedRealityCursor GazeCursor { get; }
Property Value
Declaration
public GameObject GazeCursorPrefab { set; }
Property Value
Type |
Description |
GameObject |
|
Declaration
public GameObject GazeCursorPrefab { set; }
Property Value
Type |
Description |
GameObject |
|
Declaration
public Vector3 GazeDirection { get; }
Property Value
Declaration
public Vector3 GazeDirection { get; }
Property Value
Declaration
public IMixedRealityInputSource GazeInputSource { get; }
Property Value
Declaration
public IMixedRealityInputSource GazeInputSource { get; }
Property Value
Declaration
public Vector3 GazeOrigin { get; }
Property Value
Declaration
public Vector3 GazeOrigin { get; }
Property Value
Declaration
public IMixedRealityPointer GazePointer { get; }
Property Value
Declaration
public IMixedRealityPointer GazePointer { get; }
Property Value
Declaration
public GameObject GazeTarget { get; }
Property Value
Type |
Description |
GameObject |
|
Declaration
public GameObject GazeTarget { get; }
Property Value
Type |
Description |
GameObject |
|
Declaration
public Vector3 HeadMovementDirection { get; }
Property Value
Declaration
public Vector3 HeadMovementDirection { get; }
Property Value
Declaration
public Vector3 HeadVelocity { get; }
Property Value
Declaration
public Vector3 HeadVelocity { get; }
Property Value
Declaration
public MixedRealityRaycastHit HitInfo { get; }
Property Value
Declaration
public MixedRealityRaycastHit HitInfo { get; }
Property Value
Declaration
public Vector3 HitNormal { get; }
Property Value
Declaration
public Vector3 HitNormal { get; }
Property Value
Declaration
public Vector3 HitPosition { get; }
Property Value
Declaration
public Vector3 HitPosition { get; }
Property Value
Declaration
public bool? IsEyeCalibrationValid { get; }
Property Value
Declaration
public bool? IsEyeCalibrationValid { get; }
Property Value
Declaration
public bool IsEyeGazeValid { get; }
Property Value
Declaration
public bool IsEyeTrackingDataValid { get; }
Property Value
Declaration
public bool IsEyeTrackingEnabled { get; set; }
Property Value
Declaration
public bool IsEyeTrackingEnabledAndValid { get; }
Property Value
Declaration
public Ray LatestEyeGaze { get; }
Property Value
Declaration
public DateTime Timestamp { get; }
Property Value
Type |
Description |
DateTime |
|
Declaration
public DateTime Timestamp { get; }
Property Value
Type |
Description |
DateTime |
|
Declaration
public bool UseEyeTracking { get; set; }
Property Value
Declaration
public bool UseHeadGazeOverride { get; set; }
Property Value
Methods
Declaration
protected override void OnDisable()
Overrides
Declaration
protected override void OnDisable()
Overrides
Declaration
protected override void OnEnable()
Overrides
Declaration
protected override void OnEnable()
Overrides
Declaration
public void OnInputDown(InputEventData eventData)
Parameters
Declaration
public void OnInputDown(InputEventData eventData)
Parameters
Declaration
public void OnInputUp(InputEventData eventData)
Parameters
Declaration
public void OnInputUp(InputEventData eventData)
Parameters
Declaration
public void OverrideHeadGaze(Vector3 position, Vector3 forward)
Parameters
Type |
Name |
Description |
Vector3 |
position |
|
Vector3 |
forward |
|
Declaration
protected override void RegisterHandlers()
Overrides
Declaration
protected override void RegisterHandlers()
Overrides
Declaration
public void SetGazeCursor(GameObject cursor)
Parameters
Type |
Name |
Description |
GameObject |
cursor |
|
Declaration
public void SetGazeCursor(GameObject cursor)
Parameters
Type |
Name |
Description |
GameObject |
cursor |
|
Declaration
protected override void Start()
Overrides
Declaration
protected override void Start()
Overrides
Declaration
protected override void UnregisterHandlers()
Overrides
Declaration
protected override void UnregisterHandlers()
Overrides
Declaration
public void UpdateEyeGaze(IMixedRealityEyeGazeDataProvider provider, Ray eyeRay, DateTime timestamp)
Parameters
Declaration
public void UpdateEyeGaze(IMixedRealityEyeGazeDataProvider provider, Ray eyeRay, DateTime timestamp)
Parameters
Declaration
public void UpdateEyeTrackingStatus(IMixedRealityEyeGazeDataProvider provider, bool userIsEyeCalibrated)
Parameters
Declaration
public void UpdateEyeTrackingStatus(IMixedRealityEyeGazeDataProvider provider, bool userIsEyeCalibrated)
Parameters
Declaration
public void UpdateGazeInfoFromHit(MixedRealityRaycastHit raycastHit)
Parameters
Declaration
public void UpdateGazeInfoFromHit(MixedRealityRaycastHit raycastHit)
Parameters
Implements
MonoBehaviour
IEventSystemHandler