Show
Show the EditorWindow window.
Read time 1 minuteLast updated 7 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
Show()
Show the EditorWindow window.
public void Show()
Remarks
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.
Examples
// Create an empty Editor window and show itusing 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(); }}
Show(bool)
Show the EditorWindow window.
public void Show(bool immediateDisplay)
Parameters
Immediately display EditorWindow.Show().
Remarks
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.
Examples
// Create an empty Editor window and show itusing 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(); }}