Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Object Class Reference page uses incorrect C# example #8220

Closed
tetrapod00 opened this issue Oct 11, 2023 · 0 comments · Fixed by godotengine/godot#83609
Closed

Object Class Reference page uses incorrect C# example #8220

tetrapod00 opened this issue Oct 11, 2023 · 0 comments · Fixed by godotengine/godot#83609
Labels
area:class reference Issues and PRs about the class reference, which should be addressed on the Godot engine repository bug content:proofreading Issues and PRs related to proofreading the documentation topic:dotnet

Comments

@tetrapod00
Copy link
Contributor

tetrapod00 commented Oct 11, 2023

Your Godot version:
4.2dev6
Issue description:
The page includes this line:

You can create new instances, using Object.new() in GDScript, or new Object in C#.

As of 4.2dev6, the C# implementation of Godot's Object class is called GodotObject, not Object. In C#, Object is a class in the System namespace.

The example code should be replaced with something like new GodotObject().

This is likely not the only place where a mistake like this exists, I have not done a thorough search.

URL to the documentation page:
https://docs.godotengine.org/en/latest/classes/class_object.html#class-object

@tetrapod00 tetrapod00 added the bug label Oct 11, 2023
@Piralein Piralein added topic:dotnet area:class reference Issues and PRs about the class reference, which should be addressed on the Godot engine repository content:proofreading Issues and PRs related to proofreading the documentation labels Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:class reference Issues and PRs about the class reference, which should be addressed on the Godot engine repository bug content:proofreading Issues and PRs related to proofreading the documentation topic:dotnet
Projects
None yet
2 participants