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

Fix incorrect C# code examples in the "Making main screen plugins" tutorial #10389

Closed
wants to merge 1 commit into from

Conversation

BrixsterPlanet
Copy link

@BrixsterPlanet BrixsterPlanet commented Dec 8, 2024

The C# examples in the "Making main screen plugins" tutorial do not compile because EditorInterface.GetEditorMainScreen() is not a static method. The correct usage is to refer to the singleton object with EditorInterface.Singleton.GetEditorMainScreen()

Incorrect usage:
image
Correct usage:
image

…_plugins.rst

The C# examples do not compile because `EditorInterface.GetEditorMainScreen()` is not a static method. The correct usage is to refer to the singleton object with `EditorInterface.Singleton.GetEditorMainScreen()`
@tetrapod00
Copy link
Contributor

tetrapod00 commented Dec 9, 2024

Partial duplicate of #9399. See also #10091, #9626.

@tetrapod00 tetrapod00 added bug topic:dotnet area:manual Issues and PRs related to the Manual/Tutorials section of the documentation labels Dec 9, 2024
@tetrapod00 tetrapod00 requested a review from a team December 9, 2024 00:13
@tetrapod00
Copy link
Contributor

Thanks for contributing! As mentioned earlier, this change was already included in an earlier PR, which was just merged. As such, I'm closing this as a duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
archived 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.

2 participants