SearchUtils.GetMainWindowCenteredPosition

Declaration

public static Rect GetMainWindowCenteredPosition(Vector2 size);

Parameters

size Size of the window to be centered.

Returns

Rect Centered position.

Description

Returns a UnityEngine.Rect to center a window on the main Unity Editor window.


Did you find this page useful? Please give it a rating: