日本語翻訳ドキュメントはサポートを終了しました

MRTK 2.6 以降のドキュメントについては、公式の Microsoft ドキュメント を参照してください。

    Show / Hide Table of Contents

    Class AudioFeedbackPlayer

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

    Inheritance
    Object
    AudioFeedbackPlayer
    Namespace: Microsoft.MixedReality.Toolkit.Examples.Demos.EyeTracking
    Assembly: cs.temp.dll.dll
    Syntax
    public class AudioFeedbackPlayer : MonoBehaviour

    Properties

    Instance

    Declaration
    public static AudioFeedbackPlayer Instance { get; }
    Property Value
    Type Description
    AudioFeedbackPlayer

    Methods

    PlaySound(AudioClip)

    Play a sound on the most recently set up GameObject.

    Declaration
    public void PlaySound(AudioClip audiofx)
    Parameters
    Type Name Description
    AudioClip audiofx

    The AudioClip to play.

    SetupAudioSource(GameObject)

    Ensures an audio source on the GameObject and returns it.

    Declaration
    public AudioSource SetupAudioSource(GameObject targetGameObject)
    Parameters
    Type Name Description
    GameObject targetGameObject

    The GameObject to play the desired audio.

    Returns
    Type Description
    AudioSource

    The AudioSource on the GameObject.

    Back to top Generated by DocFX