Sets the anchors to a preset from Control.layoutpreset enum. This is the code equivalent to using the Layout menu in the 2D editor. If keep_margins is true, control's position will also be updated.
See Implementation
Sets the anchors to a preset from Control.layoutpreset enum. This is the code equivalent to using the Layout menu in the 2D editor. If keep_margins is true, control's position will also be updated.