InteractableReceiverList 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.
An example of building an Interactable receiver that uses built-in receivers that extend ReceiverBase
public ref class InteractableReceiverList : Microsoft::MixedReality::Toolkit::UI::ReceiverBaseMonoBehavior
[UnityEngine.AddComponentMenu("Scripts/MRTK/SDK/InteractableReceiverList")]
public class InteractableReceiverList : Microsoft.MixedReality.Toolkit.UI.ReceiverBaseMonoBehavior
[<UnityEngine.AddComponentMenu("Scripts/MRTK/SDK/InteractableReceiverList")>]
type InteractableReceiverList = class
inherit ReceiverBaseMonoBehavior
Public Class InteractableReceiverList
Inherits ReceiverBaseMonoBehavior
- Inheritance
- Attributes
-
UnityEngine.AddComponentMenuAttribute
Constructors
InteractableReceiverList() |
Fields
Events |
List of events added to this interactable |
Interactable |
Interactable to target (Inherited from ReceiverBaseMonoBehavior) |
InteractableSearchScope |
directions to search for Interactable component in transform hierarchy if none assigned (Inherited from ReceiverBaseMonoBehavior) |
lastState | (Inherited from ReceiverBaseMonoBehavior) |
Methods
AddInteractable(Interactable) |
Add an interactable and add it as a handler (Inherited from ReceiverBaseMonoBehavior) |
Awake() | |
OnClick(InteractableStates, Interactable, IMixedRealityPointer) |
captures click events |
OnDisable() |
Remove itself as a handler (Inherited from ReceiverBaseMonoBehavior) |
OnEnable() |
look for an Interactable if not assigned (Inherited from ReceiverBaseMonoBehavior) |
OnStateChange(InteractableStates, Interactable) |
.A state has changed |
OnVoiceCommand(InteractableStates, Interactable, String, Int32, Int32) |
captures voice commands |
SetupEvents() |
starts the event system |
Update() | (Inherited from ReceiverBaseMonoBehavior) |