mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0

    Show / Hide Table of Contents

    Class FocusHandler

    Utility component to hook up Unity events to the OnFocusEnter and OnFocusExit events.

    Inheritance
    Object
    FocusHandler
    Implements
    IMixedRealityFocusHandler
    IEventSystemHandler
    MonoBehaviour
    Namespace: Microsoft.MixedReality.Toolkit.Input
    Assembly: cs.temp.dll.dll
    Syntax
    public class FocusHandler : MonoBehaviour, IMixedRealityFocusHandler, IEventSystemHandler, MonoBehaviour

    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

    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

    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

    OnFocusExitEvent

    Event which is triggered when focus ends.

    Declaration
    public UnityEvent OnFocusExitEvent { get; set; }
    Property Value
    Type Description
    UnityEvent

    Methods

    OnFocusEnter(FocusEventData)

    Declaration
    public void OnFocusEnter(FocusEventData eventData)
    Parameters
    Type Name Description
    FocusEventData eventData

    OnFocusEnter(FocusEventData)

    Declaration
    public void OnFocusEnter(FocusEventData eventData)
    Parameters
    Type Name Description
    FocusEventData eventData

    OnFocusExit(FocusEventData)

    Declaration
    public void OnFocusExit(FocusEventData eventData)
    Parameters
    Type Name Description
    FocusEventData eventData

    OnFocusExit(FocusEventData)

    Declaration
    public void OnFocusExit(FocusEventData eventData)
    Parameters
    Type Name Description
    FocusEventData eventData

    Implements

    IMixedRealityFocusHandler
    IEventSystemHandler
    MonoBehaviour
    In This Article
    • Properties
      • MarkEventsAsUsed
      • MarkEventsAsUsed
      • OnFocusEnterEvent
      • OnFocusEnterEvent
      • OnFocusExitEvent
      • OnFocusExitEvent
    • Methods
      • OnFocusEnter(FocusEventData)
      • OnFocusEnter(FocusEventData)
      • OnFocusExit(FocusEventData)
      • OnFocusExit(FocusEventData)
    • Implements
    Back to top Generated by DocFX