BaseFocusHandler 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.
Base Component for handling Focus on GameObjects.
public ref class BaseFocusHandler abstract : UnityEngine::MonoBehaviour, Microsoft::MixedReality::Toolkit::Input::IMixedRealityFocusChangedHandler, Microsoft::MixedReality::Toolkit::Input::IMixedRealityFocusHandler, UnityEngine::EventSystems::IEventSystemHandler
[UnityEngine.RequireComponent(typeof(UnityEngine.Collider))]
public abstract class BaseFocusHandler : UnityEngine.MonoBehaviour, Microsoft.MixedReality.Toolkit.Input.IMixedRealityFocusChangedHandler, Microsoft.MixedReality.Toolkit.Input.IMixedRealityFocusHandler, UnityEngine.EventSystems.IEventSystemHandler
[<UnityEngine.RequireComponent(typeof(UnityEngine.Collider))>]
type BaseFocusHandler = class
inherit MonoBehaviour
interface IMixedRealityFocusHandler
interface IEventSystemHandler
interface IMixedRealityFocusChangedHandler
Public MustInherit Class BaseFocusHandler
Inherits MonoBehaviour
Implements IEventSystemHandler, IMixedRealityFocusChangedHandler, IMixedRealityFocusHandler
- Inheritance
-
UnityEngine.MonoBehaviourBaseFocusHandler
- Derived
- Attributes
-
UnityEngine.RequireComponentAttribute
- Implements
-
IMixedRealityFocusChangedHandler IMixedRealityFocusHandler Unity
Engine. Event Systems. IEvent System Handler
Focus |
Is focus enabled for this Component? |
Focusers |
The list of IMixedRealityPointers that are currently focused on this GameObject |
Has |
Does this object currently have focus by any IMixedRealityPointer? |
On |
Focus event that is raised before the focus is actually changed. |
On |
Focus event that is raised when the focused object is changed. |
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. |
Продукт | Версії |
---|---|
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 |