when changing between scenes button stay in there same mode as before

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By someoneyt


so I’m making this 3d game with settings scene that contains a checkbutton that turns shadows on and off for the directional light “the directional light is an autoload”, but everything works accept that when I turn of the shadows button and I change the scene and when I come back to that scene the shadows button is automatically turned back on, soooo…

can someone please help because it is super important!
can someone tell how to like make a quick scene saver I tried to see tutorials on how to save my game but I can’t really find what I’m looking for or they are super complicated!!!

A “quack scene saver”? Try not to run afowl of anyone when writing this.

Look into singletons. Save the lighting settings to the singleton and, when the settings scene is loaded, have that scene check for any settings in the singleton.

Ertain | 2020-05-04 07:32