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

MenuItem template can be improved #1856

Closed
van800 opened this issue Sep 21, 2020 · 0 comments · Fixed by #1873
Closed

MenuItem template can be improved #1856

van800 opened this issue Sep 21, 2020 · 0 comments · Fixed by #1873
Milestone

Comments

@van800
Copy link
Contributor

van800 commented Sep 21, 2020

I think template could be improved.
Now, if I leave everything by default, I am getting
Ignoring menu item MENUITEM because it is in no submenu!
So likely this would be better:

  public class MyEditorWindow : EditorWindow
  {
    [MenuItem("MENUITEM/MENUITEMCOMMAND")]
    private static void ShowWindow()
    {
      var window = GetWindow<erty>();
      window.titleContent = new GUIContent("TITLE");
      window.Show();
    }

    private void OnGUI()
    {
        
    }
  }
@van800 van800 changed the title MenuItem template improvement MenuItem template can be improved Sep 21, 2020
@citizenmatt citizenmatt added this to the Rider 2020.3 milestone Oct 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants