Class ReceiverBase
The base class for all receivers that attach to Interactables
Inheritance
ReceiverBase
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.UI
Assembly: cs.temp.dll.dll
Syntax
public abstract class ReceiverBase
Constructors
ReceiverBase(UnityEvent)
Declaration
public ReceiverBase(UnityEvent ev)
Parameters
Type | Name | Description |
---|---|---|
Unity |
ev |
Fields
HideUnityEvents
Declaration
public bool HideUnityEvents
Field Value
Type | Description |
---|---|
Boolean |
Host
Declaration
public MonoBehaviour Host
Field Value
Type | Description |
---|---|
Mono |
Name
Declaration
public string Name
Field Value
Type | Description |
---|---|
String |
uEvent
Declaration
protected UnityEvent uEvent
Field Value
Type | Description |
---|---|
Unity |
Methods
OnClick(InteractableStates, Interactable, IMixedRealityPointer)
A click event happened
Declaration
public virtual void OnClick(InteractableStates state, Interactable source, IMixedRealityPointer pointer = null)
Parameters
Type | Name | Description |
---|---|---|
Interactable |
state | |
Interactable | source | |
IMixed |
pointer |
OnUpdate(InteractableStates, Interactable)
The state has changed
Declaration
public abstract void OnUpdate(InteractableStates state, Interactable source)
Parameters
Type | Name | Description |
---|---|---|
Interactable |
state | |
Interactable | source |
OnVoiceCommand(InteractableStates, Interactable, String, Int32, Int32)
A voice command was called
Declaration
public virtual void OnVoiceCommand(InteractableStates state, Interactable source, string command, int index = 0, int length = 1)
Parameters
Type | Name | Description |
---|---|---|
Interactable |
state | |
Interactable | source | |
String | command | |
Int32 | index | |
Int32 | length |