Quantcast
Channel: Questions in topic: "gui"
Viewing all articles
Browse latest Browse all 125

(Bolt) Application variable resetting on scene change

$
0
0
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: ![alt text][1] My variables: ![alt text][2] [1]: /storage/temp/184165-help2.png [2]: /storage/temp/184164-help1.png

Viewing all articles
Browse latest Browse all 125

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>