- Home /
Question by
CrystalCaveDevWB · Jul 30, 2021 at 09:27 AM ·
guivariableaudiosource
(Bolt) Application variable resetting on scene change
Using Unity 2020.3.7f1 personal and Bolt . I am making a GUI using scene changes, and I made a script to set the time of music to an application variable. After seeing that this didn't work, I went ahead and changed the value to 10 seconds. It set the music time to 10 seconds, but when I switched scenes, it reset back to 0. This worked in Unity3D, but when ported to 2D, it didn't work. (I'm pretty sure it's not related to that though.) I also tried both prefab and normal object. Neither worked.
My code: My variables:
Comment
Your answer
Follow this Question
Related Questions
Change GUI.Label text while it's active? 1 Answer
Gui label variable as a string.. 1 Answer
Change GUI Value with Variable 1 Answer
Error with GUI and Variable 2 Answers