-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Description
Godot 4.1.2 under Windows, internal Godot editor, although unrelated.
The Singleton / Autoload page in the docs https://docs.godotengine.org/en/stable/tutorials/scripting/singletons_autoload.html , at the "This means that any node can access a singleton named "PlayerVariables" with:" passage and following text encourages users to put their singletons in a variable to access them, as if its a best practice, which ends up blocking Autocomplete and other Godot internal features.
The article DOES explain right after it what you are actually supposed to do (leave the Singleton enabled).
My suggestion here is certainly to reverse the order of the explanations, maybe mentioning the Singleton starts enabled by default and can be accessed like a global object, then explaining to place it in a variable if its not