GetMainWindowCenteredPosition(Vector2)
Returns a Rect to center a window on the main Unity Editor window.
읽는 시간 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. |