Hi.
I'm trying to add a loding screen to my game between the scenes but I have an error message.
I made a simple scene with a camera and a srpite taking the whole screen.
The error message I get is :
NullReferenceException: Object reference not set to an instance of an object
AC.Sound.SetMaxVolume () (at Assets/AdventureCreator/Scripts/Logic/Sound.cs:277)
I firstly tried a loading screen using Unity UI and had the same message.
Am I missing something?
Comments
I noticed that the difference is that I have music playing accross scenes. So I tried disabling the "play accross scene" options on my song in my project and it worked!
But it's not a solution for me as I want the music to continue playing even if I have a loding screen. Is there something I should do to make it work with the loading scene?