Class FocusHandler
Utility component to hook up Unity events to the OnFocusEnter and OnFocusExit events.
Namespace: Microsoft.MixedReality.Toolkit.Input
Assembly: cs.temp.dll.dll
Syntax
public class FocusHandler : MonoBehaviour, IMixedRealityFocusHandler, IEventSystemHandler
Properties
MarkEventsAsUsed
Whether input events should be marked as used after handling so other handlers in the same game object ignore them.
Declaration
public bool MarkEventsAsUsed { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
OnFocusEnterEvent
Event which is triggered when focus begins.
Declaration
public UnityEvent OnFocusEnterEvent { get; set; }
Property Value
Type | Description |
---|---|
Unity |
OnFocusExitEvent
Event which is triggered when focus ends.
Declaration
public UnityEvent OnFocusExitEvent { get; set; }
Property Value
Type | Description |
---|---|
Unity |
Methods
OnFocusEnter(FocusEventData)
The Focus Enter event is raised on this GameObject whenever a IMixed
Declaration
public void OnFocusEnter(FocusEventData eventData)
Parameters
Type | Name | Description |
---|---|---|
Focus |
eventData |
OnFocusExit(FocusEventData)
The Focus Exit event is raised on this GameObject whenever a IMixed
Declaration
public void OnFocusExit(FocusEventData eventData)
Parameters
Type | Name | Description |
---|---|---|
Focus |
eventData |