How do I make my ui centered? What does its position have to be and what anchorpoint?
Set anchorpoint to (β0.5,0.5β)
Donβt create a unecessary topic about it when you can easily find the relevant information on the developer wiki and various resources. See anchor point Do your research first!
3 Likes
Set AnchorPoint to 0.5, 0.5
. Then set Position to {0.5, 0}, {0.5, 0}
. Then you can change the size to whatever you want and it will stay centered.
1 Like
I also needed to see the position, not just the anchorpoint. But thanks for helping!
Another way is to position it to 0.5 and then subtract it by half of the size (if your ui was 100 by 100 you set it to 0.5, 0.5 and then make the offset for both vectors -50)
1 Like