Music Player doesn't persist across scenes

When we’re introduced to the concept of statics, it’s in the context of keeping the Music Player game object from duplicating every time we return to the Block Breaker “Start” screen. However, my music player does not persist across scenes, even when I introduce the GameObject.DontDestroyOnLoad method into my script, and so it doesn’t duplicate when I return to the Start screen, either. No matter what I do, the music stops when I change scenes, and the Music Player does not appear in the hierarchy outside of the Start scene. Any suggestions?

Privacy & Terms