Version: 2023.2
言語: 日本語
public void Show ();
public void Show (bool immediateDisplay);

パラメーター

immediateDisplay Immediately display Show.

説明

Show the EditorWindow window.

EditorWindow.Show displays any window that has been created. In the script example below the window is created with no addition functionality. Many of the script examples in EditorWindow are more complex.

// Create an empty Editor window and show it

using UnityEditor;
using UnityEngine;

public class ShowWindow : EditorWindow
{
    [MenuItem("Examples/ShowWindow")]
    public static void ShowExample()
    {
        ShowWindow wnd = GetWindow<ShowWindow>();
        wnd.titleContent = new GUIContent("ShowWindow");
        wnd.Show();
    }
}