Skip to content

Conversation

@paulloz
Copy link
Member

@paulloz paulloz commented Jul 3, 2023

This does not exist in C# (and AFAIK, it's never been a thing).

@raulsntos raulsntos added bug topic:dotnet area:manual Issues and PRs related to the Manual/Tutorials section of the documentation cherrypick:4.0 cherrypick:4.1 labels Jul 4, 2023
Copy link
Member

@raulsntos raulsntos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I don't remember this ever being a thing. Most likely a direct translation from the GDScript example made by a contributor that didn't use C#.

Actually, after re-reading the comment I think the example is meant to show that if the Health property is static you can access it using the type name. This has nothing to do with what the GDScript example is showing (which is that autoloads can be accessed as singletons by their name), so it could be misleading and I'm still in favor of removing it.

@skyace65 skyace65 merged commit a99a4ae into godotengine:master Jul 4, 2023
@skyace65
Copy link
Contributor

skyace65 commented Jul 4, 2023

Thanks!

@paulloz paulloz deleted the dotnet/remove-wrong-autoload-code branch July 4, 2023 11:54
mhilbrunner pushed a commit that referenced this pull request Aug 1, 2023
mhilbrunner pushed a commit that referenced this pull request Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:manual Issues and PRs related to the Manual/Tutorials section of the documentation bug topic:dotnet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants