Class UnityRectExtensions
Ad-hoc extensions to the Rect structure, used by Cinemachine
Inherited Members
Namespace: Unity.Cinemachine
Assembly: Unity.Cinemachine.dll
Syntax
public static class UnityRectExtensions
Methods
Inflated(Rect, Vector2)
Inflate a rect
Declaration
public static Rect Inflated(this Rect r, Vector2 delta)
Parameters
| Type | Name | Description |
|---|---|---|
| Rect | r | The rect to inflate. |
| Vector2 | delta | x and y are added/subtracted to/from the edges of the rect, inflating it in all directions |
Returns
| Type | Description |
|---|---|
| Rect | The inflated rect |