AudioFeedbackPlayer Class

Definition

AudioFeedbackPlayer eases playing single audio feedback. Good for audio effects.

C++
public ref class AudioFeedbackPlayer : UnityEngine::MonoBehaviour
Inheritance
UnityEngine.MonoBehaviour
AudioFeedbackPlayer
Attributes
UnityEngine.AddComponentMenuAttribute

Constructors

Properties

Methods

PlaySound(AudioClip)

Play a sound on the most recently set up GameObject.

SetupAudioSource(GameObject)

Ensures an audio source on the GameObject and returns it.

Applies to

منتج الإصدارات
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