public static void CreateView() { //创建窗口 EventManagerWindow window = GetWindow(); window.Show(); }
private void OnGUI() { if (GUILayout.Button("Open Editor")) { CustomRoomWindow.OpenWindow(0, Vector2Int.zero, Vector2Int.zero); } if (GUILayout.Button("Open Event Manager")) { EventManagerWindow.OpenWindow(); } }