Audio issue/error

i was doing the course “Complete C# unity game developer 3D” i am on section 3 video 48 “Multiple audio clip” i belive i have followed the instruction as mentioned but when i play and crash on untagged objects instead of the sound being played i get an error message.


Screenshot 2022-07-19 165921

same error when i land on “finish” taged objects as well

I had the same issue, what fixed it for me was NOT to have the audio source cached out, so instead of the audioSource variable I used the GetComponent< AudioSource>().playOneShot(AudioClip) again and again…, might try to create that variable again later, but now it works for me.

Privacy & Terms