Replace GUI anchor type by a float between 0 and 1
This commit is contained in:
@ -2485,7 +2485,7 @@ SpatialEditorViewport::SpatialEditorViewport(SpatialEditor *p_spatial_editor, Ed
|
||||
|
||||
preview_camera = memnew(Button);
|
||||
preview_camera->set_toggle_mode(true);
|
||||
preview_camera->set_anchor_and_margin(MARGIN_LEFT, ANCHOR_END, 90 * EDSCALE);
|
||||
preview_camera->set_anchor_and_margin(MARGIN_LEFT, ANCHOR_END, -90 * EDSCALE);
|
||||
preview_camera->set_anchor_and_margin(MARGIN_TOP, ANCHOR_BEGIN, 10 * EDSCALE);
|
||||
preview_camera->set_text("preview");
|
||||
surface->add_child(preview_camera);
|
||||
|
||||
Reference in New Issue
Block a user