Version: 2019.1
public void Show ();
public void Show (bool immediateDisplay);

Parameters

immediateDisplayImmediately 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(); } }
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961