Editar

Compartilhar via


AudioFeedbackPlayer Class

Definition

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

public ref class AudioFeedbackPlayer : UnityEngine::MonoBehaviour
[UnityEngine.AddComponentMenu("Scripts/MRTK/Examples/AudioFeedbackPlayer")]
public class AudioFeedbackPlayer : UnityEngine.MonoBehaviour
[<UnityEngine.AddComponentMenu("Scripts/MRTK/Examples/AudioFeedbackPlayer")>]
type AudioFeedbackPlayer = class
    inherit MonoBehaviour
Public Class AudioFeedbackPlayer
Inherits MonoBehaviour
Inheritance
UnityEngine.MonoBehaviour
AudioFeedbackPlayer
Attributes
UnityEngine.AddComponentMenuAttribute

Constructors

AudioFeedbackPlayer()

Properties

Instance

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