- Home /
Question by
koalabruder · Sep 14, 2016 at 12:34 PM ·
uibuttonrecttransform
How to place a Button onto the right border?
It is easy to place a scaling button (or panel) next to the right border in the RectTransform (ALT+SHIFT+middle+right).
PosX/PosY=0
Anchors MinX/Anchors MaxX/Pivot X= 1
Anchors MinY/Anchors MaxYX/Pivot Y= 0.5
If I resize the parent the button scales correct.
But how can I place the button directly onto the border. It is a round button and I only want to see its half. I tried to move the insertion-point onto the border (PosX=50). The negative effect is that if I resize the parent the button moves away.
Comment
After using "ALT+SHIFT+middle+right", set Pivot to x=0.5,y=0.5, with Pos X=0,Pox y=0