- Home /
Question by
amaljoy205 · May 23, 2020 at 06:26 AM ·
c#audioprogrammingaudiosourceaudioclip
How to play "audiosource" component in a prefab from script?
Hi I have a prefab object with an audiosource component attached to it. Although i can successfully access that audiosource component via script attached on another object, i cant play it. How to play "audiosource" component in that prefab from script attached on another gameobject?
Comment
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Audio Clip Playing every frame 2 Answers
PlayClipAtPoint Qualify with Type Name 2 Answers
Audio/c#/unity Can i control the duration by time ? 1 Answer