Class BaseEyeFocusHandler
Base Component for handling Eye Focus on GameObjects.
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.Input
Assembly: cs.temp.dll.dll
Syntax
public abstract class BaseEyeFocusHandler : BaseFocusHandler, IMixedRealityFocusHandler, IMixedRealityFocusChangedHandler, IEventSystemHandler
Methods
OnBeforeFocusChange(FocusEventData)
Focus event that is raised before the focus is actually changed.
Declaration
public override void OnBeforeFocusChange(FocusEventData eventData)
Parameters
Type | Name | Description |
---|---|---|
FocusEventData | eventData |
Overrides
Remarks
Useful for logic that needs to take place before focus changes.
OnEyeFocusDwell()
Triggered once the eye gaze ray has intersected with this target's collider for a specified amount of time.
Declaration
protected virtual void OnEyeFocusDwell()
OnEyeFocusStart()
Triggered once the eye gaze ray starts intersecting with this target's collider.
Declaration
protected virtual void OnEyeFocusStart()
OnEyeFocusStay()
Triggered while the eye gaze ray is intersecting with this target's collider.
Declaration
protected virtual void OnEyeFocusStay()
OnEyeFocusStop()
Triggered once the eye gaze ray stops intersecting with this target's collider.
Declaration
protected virtual void OnEyeFocusStop()
Update()
Handles highlighting targets when the cursor enters its hit box.
Declaration
protected virtual void Update()