TextBox Scaling for mobile

i was making a TextBox for players to write something in it but idk how to scale it
it looks like there is way less space for players to write on mobile
I already tried to add TextConstraint and AspectRatioConstraint in almost every possible place and changed it 100 times but it doesn’t seem to work

PC:

Mobile:
image

image

This is the closest I was able to get with AspectRatioConstraint but TextBox is too short
image
I’m a scripter so idk much about UI lol

2 Likes

Did you try the Auto Scale plugin? Maybe it will help with the resizing. https://create.roblox.com/store/asset/1496745047/AutoScale-Lite

yeah thats the plugin i was using for constraints but it didn’t work very well

the first ss for mobile was made using the plugin and the one at the very bottom was just me changing RatioConstraint properties

1 Like

You can do it by making “TextScaled” thing true in TextBox, and it’s going to make the text automatically fit in the frame by making it a bit smaller everytime it crosses the frame size limit.

Or maybe I’m too dumb to understand your problem. Hope this helps!

the problem with TextScaled is when someone types it will be big at the beginning
I want the text to be the same size at all times so I tried to do TextScaled with TextConstraint but then the text is bigger on mobile compared to PC
For example on mobile the entire page is full of text while on PC less than half of the page

I guess TextScaled With TxtConstraint will have to do for now but the issue with using that is the text isn’t same size on mobile as on PC so while it does work on PC pretty well on mobile its just nothing different from TextScaled without TxtConstraint
I don’t really care anymore its not any serious project anyways

1 Like

Try to set the actual Text scale property to make somewhat a scale cap. I don’t really know is it gonna work, but you should give it a try!