You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just discovered that it's possible to use auto-load singletons by their names, as if they were global variables.
PlayerSettings.load()
# Instead of thisget_node("/root/PlayerSettings").load()
It would be nice to have them coloured in the code editor because otherwise they look like variables coming from nowhere. Usually, you can look up for the definition of a member or class by searching the file, but if it's a global thing you don't know that by just looking at the code.
The text was updated successfully, but these errors were encountered:
I just discovered that it's possible to use auto-load singletons by their names, as if they were global variables.
It would be nice to have them coloured in the code editor because otherwise they look like variables coming from nowhere. Usually, you can look up for the definition of a member or class by searching the file, but if it's a global thing you don't know that by just looking at the code.
The text was updated successfully, but these errors were encountered: