Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialTimothy Van Cauwenberge
8,958 PointsAudio isn't playing
I followed the video exactly but doesn't play when the game is ran. When i click on the audio files in the editor it opens it in iTunes and plays it, but doesn't play it at all when I run the game.
1 Answer
Mathew Tran
Courses Plus Student 10,205 PointsA few things to help you debug:
- Did you confirm the script that activates the audio is actually running? Maybe you can write a log to the console, to see if the related script is running at all
- Did you see any errors in the Unity Console when the sound should have been played?
- Do you have Unity's volume low on the volume mixer on your PC?
Hope this helps.
Matt