ReceiverBaseMonoBehavior Class
Definition
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.
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.MonoBehaviourReceiverBaseMonoBehavior
- 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() |