Screen size changing position

The reason i put this is scripting support is because I think I have to make a script for my problem

I have a ui but the position and size of the ui changes on different screens sizes:

Default

Different screen size

As you can see the size and the position of the ui gets changed, also I have the position and size of all ui elements in scale.

I believe you should parent all the UI elements under the BoxOpeningBackground Instance, and resize them. If this doesn’t fix the issue, double check that the offset position of the UI elements is 0.

1 Like

Do you have Auto-scale Plugin?

Scale and position your UI with the properties only. If you have any plugins that automatically scale your UI, remove them. Edit the property Position and Scale manually through the properties window. Sometimes, it is necessary to adjust the AnchorPoint of the UI to correct some screen-size related positioning issues.

Wow thanks!

I had to use an aspectratiocontraint when I parented everything inside, and I had to increase the size of the ui, but everything works correctly!


1 Like

Also for every ui that I use should I only have 1 frame inside the gui, and there should be multiple frames inside the 1 frame?

Depends. If you are using UIAspectRatioConstraint, you should definitely have 1 frame as a background UI, and the rest of the elements as the child of the background frame. Otherwise, it’s really up to you, but I’d definitely suggest having 1 frame as a background frame, and every other element to your UI stays in that frame, if the UI you are making consists of multiple UI elements, as it’d be more organized.

1 Like

Ok thanks for letting me know!

1 Like

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