Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Narasima |
Hi, I want to keep the UI states of the Control nodes while reloading the current scene. Is there a way to achieve this ?
Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Narasima |
Hi, I want to keep the UI states of the Control nodes while reloading the current scene. Is there a way to achieve this ?
Reply From: | godot_dev_ |
How I achieved this was using the following scene tree
root
UI
other nodes
I had the root node’s script store all state variables needed to stay between scene changes. I then removed the UI node and replaced it with another UI scene. Then I populated the new UI scene’s variables using the root node’s script