Version: 2021.3
LanguageEnglish
  • C#

EditorWindow.Show

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public void Show();

Declaration

public void Show(bool immediateDisplay);

Parameters

immediateDisplay Immediately display Show.

Description

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();
    }
}