ControlSetAnchorsPreset Method |
Sets the anchors to a preset from ControlLayoutPreset enum. This is code equivalent of using the Layout menu in 2D editor.
If keep_margins is true, control's position will also be updated.
Namespace: Godot
public void SetAnchorsPreset( ControlLayoutPreset preset, bool keepMargins = false )
[Missing <param name="preset"/> documentation for "M:Godot.Control.SetAnchorsPreset(Godot.Control.LayoutPreset,System.Boolean)"]
[Missing <param name="keepMargins"/> documentation for "M:Godot.Control.SetAnchorsPreset(Godot.Control.LayoutPreset,System.Boolean)"]