Skip to content

Confusing wording on Autoload / Singleton article #8312

@Kobayen

Description

@Kobayen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:manualIssues and PRs related to the Manual/Tutorials section of the documentationenhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions