Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


CreateWindow

Creates an EditorWindow of type T.
Read time 1 minuteLast updated 4 days ago

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.