FocusHandler Class
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 Unity
Engine. Event Systems. IEvent System Handler
Mark |
Whether input events should be marked as used after handling so other handlers in the same game object ignore them. |
On |
Event which is triggered when focus begins. |
On |
Event which is triggered when focus ends. |
On |
The Focus Enter event is raised on this GameObject whenever a IMixedRealityPointer's focus enters this GameObject's Collider. |
On |
The Focus Exit event is raised on this GameObject whenever a IMixedRealityPointer's focus leaves this GameObject's Collider. |
Produit | Versions |
---|---|
MRTK2 Unity 2018 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0 |
MRTK2 Unity 2019 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |
MRTK2 Unity 2020 | 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |