Recently I’ve been doing some research on static variables, but there are a couple questions I haven’t found clarity on.
Lets say I have multiple scenes that do not share variables with each other, and each scene has static variables used for communicating among its own scripts. As far as I’ve been able to learn, static variables exist until the game is shut down, which leads to the following questions.
Will the static variables be intact when I return to and recreate a scene (who previously had all its objects destroyed) and want to update or continue using them?
Is it reasonably possible to have too many static variables add up in the background when switching between many scenes?