FocusHandler Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.MonoBehaviourFocusHandler
- 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. |