Class InteractableReceiverList
An example of building an Interactable receiver that uses built-in receivers that extend ReceiverBase This is a mono behavior, place on a gameObject and assign the Interactable
Implements
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.UI
Assembly: cs.temp.dll.dll
Syntax
public class InteractableReceiverList : ReceiverBaseMonoBehavior, IInteractableHandler
Fields
Events
Declaration
public List<InteractableEvent> Events
Field Value
Type | Description |
---|---|
List<InteractableEvent> |
Methods
Awake()
Declaration
protected virtual void Awake()
OnClick(InteractableStates, Interactable, IMixedRealityPointer)
captures click events
Declaration
public override void OnClick(InteractableStates state, Interactable source, IMixedRealityPointer pointer = null)
Parameters
Type | Name | Description |
---|---|---|
InteractableStates | state | |
Interactable | source | |
IMixedRealityPointer | pointer |
Overrides
OnStateChange(InteractableStates, Interactable)
.A state has changed
Declaration
public override void OnStateChange(InteractableStates state, Interactable source)
Parameters
Type | Name | Description |
---|---|---|
InteractableStates | state | |
Interactable | source |
Overrides
OnVoiceCommand(InteractableStates, Interactable, String, Int32, Int32)
captures voice commands
Declaration
public override void OnVoiceCommand(InteractableStates state, Interactable source, string command, int index = 0, int length = 1)
Parameters
Type | Name | Description |
---|---|---|
InteractableStates | state | |
Interactable | source | |
String | command | |
Int32 | index | index of the voice command |
Int32 | length | voice command array length |
Overrides
SetupEvents()
starts the event system
Declaration
protected virtual void SetupEvents()