Hey DevForum, I’m currently trying to make a gui the same size for every device, and it works except this one bit…
This is how the gui looks like:
However, on any other device it looks like this:
Either too small or too big.
I have tried using constraits, setting size to scale instead of offset and viceversa. Nothing seems to work
Explorer (In-case it’s needed):
Trails is a ScrollingFrame
2 Likes
iiSquare
(xSquare)
August 9, 2020, 11:00pm
2
To fix this I suggest messing around with the SizeConstraint property .
1 Like
Didn’t change anything sadly. (30chars)
iiSquare
(xSquare)
August 9, 2020, 11:10pm
4
Are you using scale for both position and size?
Using offset for position and scale for size
It looks like you have already scaled it down, use UIAspectRatioConstraint UIAspectRatioConstraint | Documentation - Roblox Creator Hub
1 Like
Doesn’t seem to fix it. 30chars
iiSquare
(xSquare)
August 9, 2020, 11:20pm
8
Try using scale for both position and size, and set the SizeConstraint to XX.
1 Like
Changing the position to scale didn’t work as it’s being affected by UIListLayout, and already had it set to XX.
iiSquare
(xSquare)
August 9, 2020, 11:28pm
11
Make sure every frame is using scale aswell.
1 Like
Checked, all of them are using scale. I’ll try to reproduce this in another place to see if same happens.
Edit: It happens
maxen2031
(maxen2031)
August 9, 2020, 11:44pm
13
Use scale on both size and position and use text scales as well
1 Like
iiSquare
(xSquare)
August 9, 2020, 11:50pm
14
Do you mind sending me a file of the UI, so I can look at it and check out what’s going on?
1 Like
Here,uithing.rbxm (10.7 KB)
Incase you want the place:
uithingbutplace.rbxl (28.0 KB)
iiSquare
(xSquare)
August 10, 2020, 12:32am
16
I’m sorry but I literally have tried everything, this is so confusing to me. I can’t figure it out.
1 Like
iiSquare
(xSquare)
August 10, 2020, 12:40am
17
Nevermind! Turns out it was the CanvasSize property of the ScrollingFrame.
You were using Offset instead of Scale.
Fixed Version
FixedUI.rbxl (27.8 KB)
1 Like
Thank you for spending so much time on helping me I really appreciate it :D!
1 Like