Click or drag to resize

Control.SetSize Method

Sets the size (see RectSize).

If keep_margins is true, control's anchors will be updated instead of margins.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public void SetSize(
	Vector2 size,
	bool keepMargins = false
)

Parameters

size
Type: Godot.Vector2

[Missing <param name="size"/> documentation for "M:Godot.Control.SetSize(Godot.Vector2,System.Boolean)"]

keepMargins (Optional)
Type: System.Boolean

[Missing <param name="keepMargins"/> documentation for "M:Godot.Control.SetSize(Godot.Vector2,System.Boolean)"]

See Also