Click or drag to resize

ControlSetGlobalPosition Method

Sets the RectGlobalPosition 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 SetGlobalPosition(
	Vector2 position,
	bool keepMargins = false
)

Parameters

position
Type: GodotVector2

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

keepMargins (Optional)
Type: SystemBoolean

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

See Also