GetMainWindowCenteredPosition(Vector2)
Returns a Rect to center a window on the main Unity Editor window.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEditor.Search
- Assembly: UnityEditor
public static Rect GetMainWindowCenteredPosition(Vector2 size)
Parameters
Size of the window to be centered.
Returns
Type | Description |
|---|---|
| Rect | Centered position. |