Exactly what the title says. When I play my game in the unity engine, the music that is supposed to be playing in-game doesn’t work, but the sound effects do. When I stop the play mode the music just plays unexpectedly. I’ve restarted unity several times but the issue is still present. Also this literally just started happening right now.
What should I do?
Could you maybe post (or show in a video) your methods where the music is played? Maybe add some Debug.Log() calls before the play starts. Is the AudioSource-setting “PlayOnAwake” active?
You could try to call the Play() method in the AudioSource instead by implementing it in any script in the start method. You could also try to build the project again.
- Does the music play normally in the build?
- Does the music start when you close the build?
My last idea would be to clear the unity cache and to change the platform to android or so, then switch it back to reload some settings.