Replies: 2 comments
-
Related: Currently you can use static variables. However, when accessing from outside the class, you need to prefix it with the class name.
Global variables must be accessible from everywhere, so they must be resolved first. This is difficult if global variables are scattered across many scripts. Either you must add each global variable in Project Settings (like autoloads), or a script |
Beta Was this translation helpful? Give feedback.
0 replies
-
We have autoloads |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Can We Add @global annotation To Make The Variable Global? Is There Any Problem With This?
Beta Was this translation helpful? Give feedback.
All reactions