Cinemachine
UnityRectExtensionsInflated Method |
Inflate a rect
Namespace: Cinemachine.Utility
Assembly: Cinemachine (in Cinemachine.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
public static Rect Inflated( this Rect r, Vector2 delta )
Cinemachine.Utility.UnityRectExtensions.Inflated = function(r, delta);
Parameters
- r
- Type: Rect
[Missing <param name="r"/> documentation for "M:Cinemachine.Utility.UnityRectExtensions.Inflated(UnityEngine.Rect,UnityEngine.Vector2)"]
- delta
- Type: Vector2
x and y are added/subtracted fto/from the edges of the rect, inflating it in all directions
Return Value
Type: RectThe inflated rect
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type Rect. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).See Also