Bearbeiten

Freigeben über


PointerHandler Class

Definition

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

public ref class PointerHandler : Microsoft::MixedReality::Toolkit::Input::BaseInputHandler, Microsoft::MixedReality::Toolkit::Input::IMixedRealityPointerHandler, UnityEngine::EventSystems::IEventSystemHandler
[UnityEngine.AddComponentMenu("Scripts/MRTK/SDK/PointerHandler")]
public class PointerHandler : Microsoft.MixedReality.Toolkit.Input.BaseInputHandler, Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointerHandler, UnityEngine.EventSystems.IEventSystemHandler
[<UnityEngine.AddComponentMenu("Scripts/MRTK/SDK/PointerHandler")>]
type PointerHandler = class
    inherit BaseInputHandler
    interface IMixedRealityPointerHandler
    interface IEventSystemHandler
Public Class PointerHandler
Inherits BaseInputHandler
Implements IEventSystemHandler, IMixedRealityPointerHandler
Inheritance
UnityEngine.MonoBehaviour
PointerHandler
Attributes
UnityEngine.AddComponentMenuAttribute
Implements
IMixedRealityPointerHandler UnityEngine.EventSystems.IEventSystemHandler

Constructors

PointerHandler()

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

IMixedRealityPointerHandler.OnPointerClicked(MixedRealityPointerEventData)
IMixedRealityPointerHandler.OnPointerDown(MixedRealityPointerEventData)
IMixedRealityPointerHandler.OnPointerDragged(MixedRealityPointerEventData)
IMixedRealityPointerHandler.OnPointerUp(MixedRealityPointerEventData)

Applies to