편집

다음을 통해 공유


FocusHandler Class

Definition

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

public ref class FocusHandler : UnityEngine::MonoBehaviour, Microsoft::MixedReality::Toolkit::Input::IMixedRealityFocusHandler, UnityEngine::EventSystems::IEventSystemHandler
[UnityEngine.AddComponentMenu("Scripts/MRTK/SDK/FocusHandler")]
public class FocusHandler : UnityEngine.MonoBehaviour, Microsoft.MixedReality.Toolkit.Input.IMixedRealityFocusHandler, UnityEngine.EventSystems.IEventSystemHandler
[<UnityEngine.AddComponentMenu("Scripts/MRTK/SDK/FocusHandler")>]
type FocusHandler = class
    inherit MonoBehaviour
    interface IMixedRealityFocusHandler
    interface IEventSystemHandler
Public Class FocusHandler
Inherits MonoBehaviour
Implements IEventSystemHandler, IMixedRealityFocusHandler
Inheritance
UnityEngine.MonoBehaviour
FocusHandler
Attributes
UnityEngine.AddComponentMenuAttribute
Implements
IMixedRealityFocusHandler UnityEngine.EventSystems.IEventSystemHandler

Constructors

FocusHandler()

Properties

MarkEventsAsUsed

Whether input events should be marked as used after handling so other handlers in the same game object ignore them.

OnFocusEnterEvent

Event which is triggered when focus begins.

OnFocusExitEvent

Event which is triggered when focus ends.

Methods

OnFocusEnter(FocusEventData)

The Focus Enter event is raised on this GameObject whenever a IMixedRealityPointer's focus enters this GameObject's Collider.

OnFocusExit(FocusEventData)

The Focus Exit event is raised on this GameObject whenever a IMixedRealityPointer's focus leaves this GameObject's Collider.

Applies to