Answers for "access audio source from gameobject 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

Code answers related to "access audio source from gameobject unity"

C# Answers by Framework

Browse Popular Code Answers by Language