ReceiverBaseMonoBehavior Class
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
Interactable |
Interactable to target |
Interactable |
directions to search for Interactable component in transform hierarchy if none assigned |
last |
Add |
Add an interactable and add it as a handler |
On |
A click event happened |
On |
Remove itself as a handler |
On |
look for an Interactable if not assigned |
On |
a state has changed |
On |
A voice command was called |
Update() |
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 |