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

How do I make the objects in my GUI not change position when the resolution changes?

Asked by 3 years ago

Hello! So I have a GUI for a game I'm making. Whenever my game tab changes resolution, my GUI, and the things inside it change their position. When I get onto a higher resolution, everything is more spread out. on a lower resolution, everything starts to overlap. How do I fix this? and if I left out any important information you need to help me, let me know.

1 answer

Log in to vote
0
Answered by 3 years ago

Alright, I think I see the issue here.

Although this is not a solution with scripting, it needs to become common knowledge among new GUI "Devs".

If you look inside most GUI elements, you will see a 'Size' property. Inside that, there are an X and a Y. Again, inside those are Scale and Offset. Scale is a decimal where 1 is the full screen and 0 is nothing. Offset is the number of pixels the element will take-up.

For your situation, you need to use the Scale portion.

If you have any questions feel free to contact me!

0
LMK is this helped... ThatDevTim 188 — 3y
0
So i have to do this for the canvas and all the buttons, right? AHeldalil 1 — 3y
0
Yes, all the GUI elements you want scale to the screen. ThatDevTim 188 — 3y
Ad

Answer this question