Edit

Share via


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

public ref class ReceiverBaseMonoBehavior : UnityEngine::MonoBehaviour, Microsoft::MixedReality::Toolkit::UI::IInteractableHandler
[UnityEngine.AddComponentMenu("Scripts/MRTK/SDK/ReceiverBaseMonoBehavior")]
public class ReceiverBaseMonoBehavior : UnityEngine.MonoBehaviour, Microsoft.MixedReality.Toolkit.UI.IInteractableHandler
[<UnityEngine.AddComponentMenu("Scripts/MRTK/SDK/ReceiverBaseMonoBehavior")>]
type ReceiverBaseMonoBehavior = class
    inherit MonoBehaviour
    interface IInteractableHandler
Public Class ReceiverBaseMonoBehavior
Inherits MonoBehaviour
Implements IInteractableHandler
Inheritance
UnityEngine.MonoBehaviour
ReceiverBaseMonoBehavior
Derived
Attributes
UnityEngine.AddComponentMenuAttribute
Implements

Constructors

ReceiverBaseMonoBehavior()

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