You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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()
{
}
}
The text was updated successfully, but these errors were encountered:
van800
changed the title
MenuItem template improvement
MenuItem template can be improved
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:
The text was updated successfully, but these errors were encountered: