Version: 2022.3

SearchUtils.GetMainWindowCenteredPosition

切换到手册
public static Rect GetMainWindowCenteredPosition (Vector2 size);

参数

size Size of the window to be centered.

返回

Rect Centered position.

描述

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