-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Plugins docs on Dotnet C# EditorInterface to get singleton is wrong and misleading #9626
Comments
This is not wrong, see #9399 (comment), though it's one of two different ways of doing this, however neither is more or less correct |
I ran into this and came to see if there was an issue, and there was =D. The C# code example on the referenced documentation is wrong--outright won't build. I'm assuming the proposal is simply replace this: ...with this: It's in two spots on the docs page. |
Your Godot version:
4.3, 4.2
Issue description:
Compile error using C# on godot-demo-projects:plugins:main_screen
https://github.com/DamienFremont/godot-demo-projects/tree/master/plugins/addons/main_screen
Plugin script should be using
EditorInterface.singleton.
instead ofEditorInterface.
URL to the documentation page:
https://docs.godotengine.org/en/latest/tutorials/plugins/editor/making_main_screen_plugins.html
Fix + PR:
#9627
Test project
https://github.com/DamienFremont/godot-demo-projects/tree/fix-docs-dotnet-editorinterface-singleton-usage/plugins
Screenshots:
The text was updated successfully, but these errors were encountered: