The code and everything runs fine I think. It shows the “Glitch Garden” splash screen with audio, but when it jumps to the menu, I get an alert saying:
“The referenced script on this Behavior is missing!”
But I’m not sure what script I’m referencing. My project files are too big to add, but I can take screenshots or something if needed.
http://pastebin.com/dPAet8ys
Any chance of a screenshot of the inspector with the Persistent Music gameobject highlighted, so we can see the Music Manager info.
you should be able to see in the inspector just under the script name, which script is causing the issue.
or might be the Level Manager.
double clicking the error in the console, should direct you to where the general issue may be.
(Before you suggest it: yes, I have tried dragging the menu music into the inspector “audio clip” part, that doesn’t work either. I’m pretty sure the instructor said that is supposed to stay empty.)
yea you would get an unassigned reference if that were the case.
but this is related to a script on an object going a bit wonky.
have a look through the prefabs and whats in the start scene, might have one that has this yellow Triangle on it.

(ignore the fact that ive deliberately fudged a script just to get the error to pop up)
Yes, you’re right. The object is called “music”. I have tried deleting it, and I’ve tried adding “musicmanager” script to it, neither work though.
I just had another watch through the videos, and that music player object you have there, just seemed to dissapear from the heirarchy.
its not required as you have made a music manager in the splash screen that is set to DontDestroyOnLoad so that will persist through all levels and play your music.
remove Music from heirarchy and test.
Also sorry I missed this earlier, in the MusicManager script, where you have
OnLevelwasLoaded
should that have a capital W in there too
OnLevelWasLoaded
No need to apologize, capatilizing that darn “W” made it work. Thank you. Everyone helping me has really helped motivate me to not give up.
1 Like
keep it going! every hurdle hit and a solution found, is another learning step on the journey 
and everyones here in the same boat and always about to try and help.