ドキュメント

Unity Engine

Unity Engine

CreateWindow

Creates an EditorWindow of type T.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule

CreateWindow<T>(Type[])

Creates an EditorWindow of type
T
.
public static T CreateWindow<T>(params Type[] desiredDockNextTo) where T : EditorWindow

Parameters

desiredDockNextTo

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
T
.
public static T CreateWindow<T>(string title, params Type[] desiredDockNextTo) where T : EditorWindow

Parameters

title

The title of the created window. If this value is null, use the class name as title.

desiredDockNextTo

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.