Click or drag to resize

Rect2GrowIndividual Method

Returns a copy of the Rect2 grown a given amount of units towards each direction individually.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public Rect2 GrowIndividual(
	float left,
	float top,
	float right,
	float bottom
)

Parameters

left
Type: SystemSingle
The amount to grow by on the left.
top
Type: SystemSingle
The amount to grow by on the top.
right
Type: SystemSingle
The amount to grow by on the right.
bottom
Type: SystemSingle
The amount to grow by on the bottom.

Return Value

Type: Rect2
The grown rect.
See Also