Hi there,
I have a little question :
- I have a scene with a GUI
- and I have a Level scene
If I select an option with a checkbox in the GUI scene, how can I use that choosen variable in the next scene ?
I'm using JavaScript.
Hi there,
I have a little question :
If I select an option with a checkbox in the GUI scene, how can I use that choosen variable in the next scene ?
I'm using JavaScript.
When you go from scene to scene all objects and scripts will be destroyed and the variables will lose their values. To counter this use DontDestroyOnLoad to keep the script's object and therefore the script alive between scenes.