Can you snap a margin only in one axis?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By usurun

Currently I need to snap my node to the center of the screen, but only in the x axis, I can use set_margins_preset, but this snaps the node in both axis. Is there a way I can do this but just in one?

I can slide the node up and down, yet the position.x is not stable if the screen wide size changes, can I set the margin only in one axis?.