Class RectExtensions
Inheritance
System.Object
RectExtensions
Namespace: GDX
Syntax
public static class RectExtensions
Methods
| Improve this Doc View SourceGetCenteredRect(Rect, Vector2, Single)
Declaration
public static Rect GetCenteredRect(this Rect parentWindowPosition, Vector2 size, float safeZone = 0.9F)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityEngine.Rect | parentWindowPosition | |
| UnityEngine.Vector2 | size | |
| System.Single | safeZone |
Returns
| Type | Description |
|---|---|
| UnityEngine.Rect |