Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make a GUI scale fit a Phone, Computer, Laptop, and Tablet?!

Asked by 7 years ago

For my game I am making a Settings GUI that gives you the options to play and go on tutorial and help. Now to fit on the Tablet, Laptop, Computer and all the devices how do I do that, and please don't block this because blocking something like this is ridiculous please just explain to me and help me!

0
I'd say use offset values, that should change all the sizes to fit a phone and a computer I think. Kakitoku 32 — 7y
0
No, don't use offset. Use scale. It will be the same for every device, Just might look a little weird on unusual displays. plasma_node 343 — 7y

2 answers

Log in to vote
0
Answered by 7 years ago

Try using the scale element of a gui size or position instead of offset. It's range is from 0-1, so position at scale 0.5,0.5 would place the top left corner of an object at the center of the screen. If you want to center it you can set the ui element's center position at the top of the properties list (can't remember it's actual name) to 0.5,0.5.

Ad
Log in to vote
-1
Answered by
saucyP 7
7 years ago

Go to the Test tab, next to Terrain and View at the top. Under the tab, look for a computer monitor. There should be a dropdown menu when you click it. Select any of those options, and you will see what your GUIs will look like, emulating the real thing.

1
I did that and it still didnt show me how to change the size to match all devices! Goldenkings11 -11 — 7y

Answer this question