I’m Having Trouble Keeping the Aspect Ratio of my UI
So basically, I’m trying to make a menu, as in a restaurant. I have it set up with scripts to bind to the tool and all, but I’ve noticed that it moves around based on different devices. I want it in the center, but it keeps moving around. How would I go about fixing the aspect ratio? I’ve seen so many tutorials and tried plugins, but I still can’t get it to work.
I believe the aspect ratio refers to keeping the UI at the same size rather than position on the screen.
If you want the interface to remain in the center of the screen, in the properties of ‘Frame’ change the ‘AnchorPoint’ property to 0.5, 0.5 (where these refer to an anchor on the X and Y coordinates) and the ‘Position’ to {0.5, 0},{0.5, 0} (where the first value of each refers to scale while the second refers to offset).
3 Likes
The aspect ratio is what keeps the size of the UI. What you would need to do is set the UI a anchor point and positioning point at the same for each screen used.
It’s more of a trial and error in some cases looking at different device screens and see how the UI works on each screen.
Edit: this was late due to connection problems
1 Like