GetMainWindowCenteredPosition(Vector2)
Returns a Rect to center a window on the main Unity Editor window.
Read time 1 minuteLast updated 9 days ago
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. |