CreateWindow
Creates an EditorWindow of type T.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor
CreateWindow<T>(Type[])
Creates an EditorWindow of type .
Tpublic static T CreateWindow<T>(params Type[] desiredDockNextTo) where T : EditorWindow
Parameters
An array of EditorWindow types that the window will attempt to dock onto.
Returns
Type | Description |
|---|---|
| T |
Remarks
Creates and shows a new window and returns the instance of it.
CreateWindow<T>(string, Type[])
Creates an EditorWindow of type .
Tpublic static T CreateWindow<T>(string title, params Type[] desiredDockNextTo) where T : EditorWindow
Parameters
Returns
Type | Description |
|---|---|
| T |
Remarks
Creates and shows a new window and returns the instance of it.