PointerHandler Class

Definition

Script used to raise Unity Events in response to pointer events.

C++
public ref class PointerHandler : Microsoft::MixedReality::Toolkit::Input::BaseInputHandler, Microsoft::MixedReality::Toolkit::Input::IMixedRealityPointerHandler, UnityEngine::EventSystems::IEventSystemHandler
Inheritance
UnityEngine.MonoBehaviour
PointerHandler
Attributes
UnityEngine.AddComponentMenuAttribute
Implements
IMixedRealityPointerHandler UnityEngine.EventSystems.IEventSystemHandler

Constructors

Fields

OnPointerClicked

Unity event raised on pointer clicked.

OnPointerDown

Unity event raised on pointer down.

OnPointerDragged

Unity event raised every frame the pointer is down.

OnPointerUp

Unity event raised on pointer up.

Properties

IsFocusRequired

Is Focus required to receive input events on this GameObject?

(Inherited from BaseInputHandler)

Methods

EnsureInputSystemValid()

A task that will only complete when the input system has in a valid state.

(Inherited from InputSystemGlobalHandlerListener)
OnDisable() (Inherited from BaseInputHandler)
OnEnable() (Inherited from BaseInputHandler)
RegisterHandlers()
Start() (Inherited from BaseInputHandler)
UnregisterHandlers()
Update() (Inherited from BaseInputHandler)

Explicit Interface Implementations

Applies to

Produkt Verzie
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