How to make UI relative to the right side

Is there a way to make UI relative to the right side? For example if I wanted a frame to be a tenth away from the left side the of the screen I would set its position to just {0.1,0,0,0} and it will always be a tenth from the left regardless of size. I want to be able to achieve the same effect on the right side where regardless of the size of the frame, it will always be a tenth from the right edge without having to manually adjust the position of the frame as its size changes.

1 Like

Yes! Using anchor point, you can accomplish this.

The default anchor point is (0,0) this is the top left of the object. Changing the anchor point to (0.5,0.5) makes the anchor point in the center, and for your case, changing the anchor point to (1,0) sets the anchor point to the top right. Now, when setting it’s position, you should use {0.9,0,0,0}

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.