Class FocusHandler
Utility component to hook up Unity events to the OnFocusEnter and OnFocusExit events.
Implements
IEventSystemHandler
MonoBehaviour
Assembly: cs.temp.dll.dll
public class FocusHandler : MonoBehaviour, IMixedRealityFocusHandler, IEventSystemHandler, MonoBehaviour
Properties
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
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
Event which is triggered when focus begins.
Declaration
public UnityEvent OnFocusEnterEvent { get; set; }
Property Value
Type |
Description |
UnityEvent |
|
Event which is triggered when focus begins.
Declaration
public UnityEvent OnFocusEnterEvent { get; set; }
Property Value
Type |
Description |
UnityEvent |
|
Event which is triggered when focus ends.
Declaration
public UnityEvent OnFocusExitEvent { get; set; }
Property Value
Type |
Description |
UnityEvent |
|
Event which is triggered when focus ends.
Declaration
public UnityEvent OnFocusExitEvent { get; set; }
Property Value
Type |
Description |
UnityEvent |
|
Methods
Declaration
public void OnFocusEnter(FocusEventData eventData)
Parameters
Declaration
public void OnFocusEnter(FocusEventData eventData)
Parameters
Declaration
public void OnFocusExit(FocusEventData eventData)
Parameters
Declaration
public void OnFocusExit(FocusEventData eventData)
Parameters
Implements
IEventSystemHandler
MonoBehaviour