public static void CreateEditor() { BonWindow window = EditorWindow.GetWindow <BonWindow>(); window.wantsMouseMove = true; window.Show(); }
static void OnCreateWindow() { BonWindow window = GetWindow <BonWindow>(); // BonWindow window = CreateInstance<BonWindow>(); // to create a new window window.Show(); }