InteractableAudioReceiver 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.
Add audio clip to play onClick or on Voice Command
public ref class InteractableAudioReceiver : Microsoft::MixedReality::Toolkit::UI::ReceiverBase
[UnityEngine.AddComponentMenu("Scripts/MRTK/SDK/InteractableAudioReceiver")]
public class InteractableAudioReceiver : Microsoft.MixedReality.Toolkit.UI.ReceiverBase
[<UnityEngine.AddComponentMenu("Scripts/MRTK/SDK/InteractableAudioReceiver")>]
type InteractableAudioReceiver = class
inherit ReceiverBase
Public Class InteractableAudioReceiver
Inherits ReceiverBase
- Inheritance
- Attributes
-
UnityEngine.AddComponentMenuAttribute
Constructors
InteractableAudioReceiver(UnityEvent) |
Creates and AudioReceiver, which plays sounds on Click |
Fields
AudioClip |
AudioClip to play when event is selected |
uEvent | (Inherited from ReceiverBase) |
Properties
Event |
Each Receiver has a base Event it raises, (in addition to others). (Inherited from ReceiverBase) |
HideUnityEvents |
Defines whether Unity Events should be hidden in inspector for this type of EventReceiver |
Host |
Targeted component for Event Receiver at runtime (Inherited from ReceiverBase) |
Name |
Name of Event Receiver (Inherited from ReceiverBase) |
Methods
OnClick(InteractableStates, Interactable, IMixedRealityPointer) |
click happened |
OnUpdate(InteractableStates, Interactable) |
Called on update, check to see if the state has changed sense the last call |
OnVoiceCommand(InteractableStates, Interactable, String, Int32, Int32) |
voice command called |