Click or drag to resize

ControlSetPosition Method

Sets the RectPosition to given position.

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 SetPosition(
	Vector2 position,
	bool keepMargins = false
)

Parameters

position
Type: GodotVector2

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

keepMargins (Optional)
Type: SystemBoolean

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

See Also