InteractableAudioReceiver Class
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
Interactable |
Creates and AudioReceiver, which plays sounds on Click |
Audio |
AudioClip to play when event is selected |
u |
(Inherited from ReceiverBase) |
Event |
Each Receiver has a base Event it raises, (in addition to others). (Inherited from ReceiverBase) |
Hide |
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) |
On |
click happened |
On |
Called on update, check to see if the state has changed sense the last call |
On |
voice command called |
Toode | Versioonid |
---|---|
MRTK2 Unity 2018 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0 |
MRTK2 Unity 2019 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |
MRTK2 Unity 2020 | 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |