Class EditorWindowLayout

Namespace
TDMaker.Editor
Assembly
TDMaker.Editor.dll

Predictable initial utility-window placement without restoring a full-screen layout.

public static class EditorWindowLayout
Inheritance
EditorWindowLayout
Inherited Members

Methods

CenteredRect(Rect, Vector2)

Centers a preferred size inside the available main-window rectangle.

public static Rect CenteredRect(Rect main, Vector2 preferred)

Parameters

main Rect
preferred Vector2

Returns

Rect

Show(EditorWindow, Vector2, bool)

Repairs maximized/off-screen floating windows and brings them to the front.

public static void Show(EditorWindow window, Vector2 size, bool reset)

Parameters

window EditorWindow
size Vector2
reset bool