private static void openWindow() { // get existing open window or if none, make a new one: TestEditorWindow window = (TestEditorWindow)EditorWindow.GetWindow(typeof(TestEditorWindow)); window.Show(); }
public static void ShowWindow() { //初始化自身 TestEditorWindow window = GetWindow <TestEditorWindow>("显示窗口"); window.Show(); }
static void Init() { // Get existing open window or if none, make a new one: TestEditorWindow window = (TestEditorWindow)EditorWindow.GetWindow(typeof(TestEditorWindow)); window.InitTextures(); window.Show(); }
static void OpenWindow() { TestEditorWindow testEditorWindow = (TestEditorWindow)EditorWindow.GetWindowWithRect(typeof(TestEditorWindow), new Rect(0, 0, 500, 500), true, "这是一个测试窗口"); testEditorWindow.Show(); }
public override void OnInpectorGUI() { // Draw the default inspector DrawDefaultInspector(); EditorGUILayout.Space(); // Add a button for opening the EditorWindow and pass in the reference if (GUILayout.Button("Open EditorWindow")) { TestEditorWindow.ConversationsSystem((Test)target); } }
public static void OpenWindow() { window = GetWindow <TestEditorWindow>("Test Window"); window.minSize = new Vector2(320, 150); window.maxSize = new Vector2(510, 300); }
private static void Open() { // 生成 window = GetWindow <TestEditorWindow>("テストエディタ"); window.minSize = new Vector2(800f, 600f); }