Show
Show the EditorWindow window.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
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(); }}