OnLookAtRotateByEyeGaze Class

Definition

The associated game object will turn depending on which part of the object is looked at: The currently looked at part will move towards the front facing the user.

public ref class OnLookAtRotateByEyeGaze : Microsoft::MixedReality::Toolkit::Input::BaseEyeFocusHandler
[UnityEngine.AddComponentMenu("Scripts/MRTK/Examples/OnLookAtRotateByEyeGaze")]
[UnityEngine.RequireComponent(typeof(Microsoft.MixedReality.Toolkit.Input.EyeTrackingTarget))]
public class OnLookAtRotateByEyeGaze : Microsoft.MixedReality.Toolkit.Input.BaseEyeFocusHandler
[<UnityEngine.AddComponentMenu("Scripts/MRTK/Examples/OnLookAtRotateByEyeGaze")>]
[<UnityEngine.RequireComponent(typeof(Microsoft.MixedReality.Toolkit.Input.EyeTrackingTarget))>]
type OnLookAtRotateByEyeGaze = class
    inherit BaseEyeFocusHandler
Public Class OnLookAtRotateByEyeGaze
Inherits BaseEyeFocusHandler
Inheritance
UnityEngine.MonoBehaviour
OnLookAtRotateByEyeGaze
Attributes
UnityEngine.AddComponentMenuAttribute UnityEngine.RequireComponentAttribute

Constructors

OnLookAtRotateByEyeGaze()

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)
HasFocus

Does this object currently have focus by any IMixedRealityPointer?

(Inherited from BaseFocusHandler)

Methods

OnBeforeFocusChange(FocusEventData) (Inherited from BaseEyeFocusHandler)
OnEyeFocusDwell()

Triggered once the eye gaze ray has intersected with this target's collider for a specified amount of time.

(Inherited from BaseEyeFocusHandler)
OnEyeFocusStart()

Triggered once the eye gaze ray starts intersecting with this target's collider.

(Inherited from BaseEyeFocusHandler)
OnEyeFocusStay()
OnEyeFocusStop()

Triggered once the eye gaze ray stops intersecting with this target's collider.

(Inherited from BaseEyeFocusHandler)
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)
Update()

Handles highlighting targets when the cursor enters its hit box.

(Inherited from BaseEyeFocusHandler)

Applies to