ReceiverBaseMonoBehavior Class

Definition

A base class for detecting hand handling state changes from an Interactable Extend this class to build new events or receivers from Interactables

InteractableReceiver or InteractableReceiverList can be used with ReceiverBase - built-in receivers

C++
public ref class ReceiverBaseMonoBehavior : UnityEngine::MonoBehaviour, Microsoft::MixedReality::Toolkit::UI::IInteractableHandler
Inheritance
UnityEngine.MonoBehaviour
ReceiverBaseMonoBehavior
Derived
Attributes
UnityEngine.AddComponentMenuAttribute
Implements

Constructors

Fields

Interactable

Interactable to target

InteractableSearchScope

directions to search for Interactable component in transform hierarchy if none assigned

lastState

Methods

AddInteractable(Interactable)

Add an interactable and add it as a handler

OnClick(InteractableStates, Interactable, IMixedRealityPointer)

A click event happened

OnDisable()

Remove itself as a handler

OnEnable()

look for an Interactable if not assigned

OnStateChange(InteractableStates, Interactable)

a state has changed

OnVoiceCommand(InteractableStates, Interactable, String, Int32, Int32)

A voice command was called

Update()

Applies to

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