日本語翻訳ドキュメントはサポートを終了しました

MRTK 2.6 以降のドキュメントについては、公式の Microsoft ドキュメント を参照してください。

    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
    Back to top Generated by DocFX