Version: 2020.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; using System.Collections;

public class Example : EditorWindow { [MenuItem("Example/Window position usage")] static void InitWindow() { Example window = (Example)GetWindow(typeof(Example)); window.Show(); } }