We've moved!

Starting from MRTK 2.6, we are publishing both conceptual docs and API references on docs.microsoft.com. For conceptual docs, please visit our new landing page. For API references, please visit the MRTK-Unity section of the dot net API explorer. Existing content will remain here but will not be updated further.

Search Results for

    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
    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

    IMixedRealityFocusHandler
    IEventSystemHandler
    In This Article
    Back to top Generated by DocFX