Click or drag to resize

ControlSetSize 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: GodotVector2

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

keepMargins (Optional)
Type: SystemBoolean

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

See Also