PointerClickHandler 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.
Caution
Use PointerHandler instead of PointerClickHandler
This component handles pointer clicks from all types of input sources.
i.e. a primary mouse button click, motion controller selection press, or hand tap.public ref class PointerClickHandler : Microsoft::MixedReality::Toolkit::Input::BaseInputHandler, Microsoft::MixedReality::Toolkit::Input::IMixedRealityPointerHandler, UnityEngine::EventSystems::IEventSystemHandler
[System.Obsolete("Use PointerHandler instead of PointerClickHandler", true)]
[UnityEngine.AddComponentMenu("Scripts/MRTK/Obsolete/PointerClickHandler")]
public class PointerClickHandler : Microsoft.MixedReality.Toolkit.Input.BaseInputHandler, Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointerHandler, UnityEngine.EventSystems.IEventSystemHandler
[<System.Obsolete("Use PointerHandler instead of PointerClickHandler", true)>]
[<UnityEngine.AddComponentMenu("Scripts/MRTK/Obsolete/PointerClickHandler")>]
type PointerClickHandler = class
inherit BaseInputHandler
interface IMixedRealityPointerHandler
interface IEventSystemHandler
Public Class PointerClickHandler
Inherits BaseInputHandler
Implements IEventSystemHandler, IMixedRealityPointerHandler
- Inheritance
- Attributes
-
Obsolete
Attribute UnityEngine.AddComponentMenuAttribute
- Implements
-
IMixedRealityPointerHandler Unity
Engine. Event Systems. IEvent System Handler
Is |
Is Focus required to receive input events on this GameObject? (Inherited from BaseInputHandler) |
Ensure |
A task that will only complete when the input system has in a valid state. (Inherited from InputSystemGlobalHandlerListener) |
On |
(Inherited from BaseInputHandler) |
On |
(Inherited from BaseInputHandler) |
On |
When a pointer clicked event is raised, this method is used to pass along the event data to the input handler. |
On |
When a pointer down event is raised, this method is used to pass along the event data to the input handler. |
On |
Called every frame a pointer is down. Can be used to implement drag-like behaviors. |
On |
When a pointer up event is raised, this method is used to pass along the event data to the input handler. |
Register |
Overload this method to specify, which global events component wants to listen to. Use RegisterHandler API of InputSystem |
Start() | (Inherited from BaseInputHandler) |
Unregister |
Overload this method to specify, which global events component should stop listening to. Use UnregisterHandler API of InputSystem |
Update() | (Inherited from BaseInputHandler) |
Product | Versions (Obsolete) |
---|---|
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) |