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 |
---|---|
UnityEvent |
OnFocusExitEvent
Event which is triggered when focus ends.
Declaration
public UnityEvent OnFocusExitEvent { get; set; }
Property Value
Type | Description |
---|---|
UnityEvent |
Methods
OnFocusEnter(FocusEventData)
The Focus Enter event is raised on this GameObject whenever a IMixedRealityPointer's focus enters this GameObject's Collider.
Declaration
public void OnFocusEnter(FocusEventData eventData)
Parameters
Type | Name | Description |
---|---|---|
FocusEventData | eventData |
OnFocusExit(FocusEventData)
The Focus Exit event is raised on this GameObject whenever a IMixedRealityPointer's focus leaves this GameObject's Collider.
Declaration
public void OnFocusExit(FocusEventData eventData)
Parameters
Type | Name | Description |
---|---|---|
FocusEventData | eventData |
Implements
IEventSystemHandler