Class CustomInteractablesReceiver
Example of building a custom receiver that can be loaded as part of the events on the Interactable or in InteractableReceiverList or InteractableReceiver
Extend ReceiverBaseMonoBehavior to build external event components
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.UI
Assembly: cs.temp.dll.dll
Syntax
public class CustomInteractablesReceiver : ReceiverBase
Constructors
CustomInteractablesReceiver(UnityEvent)
Declaration
public CustomInteractablesReceiver(UnityEvent ev)
Parameters
Type | Name | Description |
---|---|---|
UnityEvent | ev |
Properties
HideUnityEvents
Defines whether Unity Events should be hidden in inspector for this type of EventReceiver
Declaration
public override bool HideUnityEvents { get; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
Methods
OnClick(InteractableStates, Interactable, IMixedRealityPointer)
click happened
Declaration
public override void OnClick(InteractableStates state, Interactable source, IMixedRealityPointer pointer = null)
Parameters
Type | Name | Description |
---|---|---|
InteractableStates | state | |
Interactable | source | |
IMixedRealityPointer | pointer |
Overrides
OnUpdate(InteractableStates, Interactable)
Called on update, check to see if the state has changed sense the last call
Declaration
public override void OnUpdate(InteractableStates state, Interactable source)
Parameters
Type | Name | Description |
---|---|---|
InteractableStates | state | |
Interactable | source |
Overrides
OnVoiceCommand(InteractableStates, Interactable, String, Int32, Int32)
voice command called
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 | |
Int32 | length |