Answers for "Unity audiosource play"

C#
5

play sound unity

AudioSource audioData;

    void Start()
    {
        audioData = GetComponent<AudioSource>();
        audioData.Play(0);
        Debug.Log("started");
    }
Posted by: Guest on September-04-2020
0

Unity audiosource play

public AudioSource someSound;

someSound.Play();
Posted by: Guest on September-30-2021
0

audioSource unity

AudioSource audioSource;
AudioClip clip;

void Start()
{
	audioSource.clip = clip;
    audioSource.Player();
}
Posted by: Guest on September-25-2021

C# Answers by Framework

Browse Popular Code Answers by Language