I have some problem in understanding how anchor works.
Here is i have Xanchor = right and Yanchor = top but box is still sticked to the bottoms left corner.
thx.
I have some problem in understanding how anchor works.
thx.
Move the node to the top right with the green/red arrows. The anchoring is not about moving toward a corner of the screen, but about locking to relative horizontal / vertical sides of the screen as it’s resized.
Try this: move the white box to the middle right of the screen. Then disable yanchor, and enable xanchor only to be set to right. Run, and resize your window vertically only to see what happens. Next set the xanchor to none, and run again to see what happens.
Off
On
yeah… it’s just really confusing.
In the play mode anchors works. it’s just different with unity where you can set anchors of the item and then set relative position to the anchor. here you set position relative to node position and this position sims like don’t know anything about which anchors used on scene.
There is more info here about GUI + Anchors in cased you missed it.