Answers for "Unity PlayOneShoot Audio"

C#
0

Unity PlayOneShoot Audio

public class PlayAudio : MonoBehaviour
{
    public AudioSource audioSource;
    public AudioClip clip;
    public float volume=0.5f;

    void Start()
    {
        audioSource.PlayOneShot(clip, volume);
    }
}Copied!
Posted by: Guest on October-04-2021

C# Answers by Framework

Browse Popular Code Answers by Language