Answers for "get audio source unity"

C#
-1

access audio source from gameobject unity

AudioSource source1 = GameObject.FindGameObjectWithTag("GameObject1").GetComponent<AudioSource>();

GetComponent<AudioSource>().clip = source1.clip;
Posted by: Guest on May-27-2020

C# Answers by Framework

Browse Popular Code Answers by Language