EditorWindow.CreateWindow

public static T CreateWindow(params Type[] desiredDockNextTo);
public static T CreateWindow(string title, params Type[] desiredDockNextTo);

Parameters

T The type of the window. Must derive from EditorWindow.
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.

Description

Creates an EditorWindow of type T.

Creates and shows a new window and returns the instance of it.

对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答