I want this GUI to look the same on all devices, but the text changes scale and some UI elements become missaligned
PC:
Mobile:
I want this GUI to look the same on all devices, but the text changes scale and some UI elements become missaligned
PC:
Mobile:
So every UI element has a size property, of which has scale and offset properties.
an example of what each does:
Now a lot of people would say just use scale and not offset, but when it comes to UI fitting devices it starts to get a lot more complicated, as I would recommend making different version for different devices due to different screen sizes.
But if you dont feel like doing that now, the most you can do is start using TextSizeConstraints, and scale instead of offset to make it the same for all devices!
Hope this helps!
Also unrelated, but your UI looks really good! Nice work :D
thanks about the last thing, Im using scale, on all of the ui elements. My question is how do i get the text to stay the right size? ive tried using TextSizeContraints but im not sure if im using them right because i couldnt get them to do anything. Could you help with that?
Oh!
Ok so in order for this to work, you’re obviously going to need the TextSizeConstraint as you mentioned, set the max and min sizes and then all you need to do is set the TextScaled property of the TextLabel (or button, or box, etc) to true.
Now it should automatically scale!
If the TextSizeConstraint doesnt seem like its working you can try resetting studio, as I’ve noticed sometimes it just doesnt work for some reason
Hope this helps :D
alright, i only messed with them once, guess studio just wasnt having it at that time and i thought i was doing something wrong. Ill try this and update you on it
I think im doing something wrong because the text is still getting larger on mobile
you can try to make the Y size smaller so that it fits completely in from top to bottom and leave some space from the sides and it should work ( i recommend text scaled + scale size )