Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetMainWindowCenteredPosition(Vector2)

Returns a Rect to center a window on the main Unity Editor window.
Read time 1 minuteLast updated 9 days ago

Definition

public static Rect GetMainWindowCenteredPosition(Vector2 size)

Parameters

Size of the window to be centered.

Returns

Type

Description

RectCentered position.