Class InteractableAudioReceiver
Add audio clip to play onClick or on Voice Command
Inheritance
InteractableAudioReceiver
Assembly: cs.temp.dll.dll
public class InteractableAudioReceiver : ReceiverBase
Constructors
Creates and AudioReceiver, which plays sounds on Click
Declaration
public InteractableAudioReceiver(UnityEvent ev)
Parameters
Type |
Name |
Description |
UnityEvent |
ev |
|
Creates and AudioReceiver, which plays sounds on Click
Declaration
public InteractableAudioReceiver(UnityEvent ev)
Parameters
Type |
Name |
Description |
UnityEvent |
ev |
|
Fields
AudioClip to play when event is selected
Declaration
public AudioClip AudioClip
Field Value
Type |
Description |
AudioClip |
|
AudioClip to play when event is selected
Declaration
public AudioClip AudioClip
Field Value
Type |
Description |
AudioClip |
|
Properties
Declaration
public override bool HideUnityEvents { get; }
Property Value
Overrides
Declaration
public override bool HideUnityEvents { get; }
Property Value
Overrides
Methods
Declaration
public override void OnClick(InteractableStates state, Interactable source, IMixedRealityPointer pointer = null)
Parameters
Overrides
Declaration
public override void OnClick(InteractableStates state, Interactable source, IMixedRealityPointer pointer = null)
Parameters
Overrides
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
Overrides
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
Overrides
Declaration
public override void OnVoiceCommand(InteractableStates state, Interactable source, string command, int index = 0, int length = 1)
Parameters
Overrides
Declaration
public override void OnVoiceCommand(InteractableStates state, Interactable source, string command, int index = 0, int length = 1)
Parameters
Overrides