Lately I have been having some issues with gui on other devices, and this is the last problem.
The gui looked very squished in other devices, so I added a UiAspectRatioConstraint and it fixed it, but it made another problem.
For some reason it makes the size of the frame to default.
This is what it looks like in mobile:
And this is what its supposed to look like:
before someone tells me to use the autoscale plugin
The gui position and size is already scaled
so if there is someone that could help me, it would be very appreciated
Thanks for your time.
3 Likes
Judgy_Oreo
(DisplayName)
April 12, 2022, 10:37am
#2
Try setting the AnchorPoint’s Y value to 0.5 and the Position’s Y scale value to 0.5 in all of the buttons.
DevLazl
(Lazl)
April 12, 2022, 10:40am
#3
This way is yes, tedious, but you can run a script that detects mobile players and you can change the sizes there. (locally)
Its completely made the buttons disappear
That would work, but It makes it look weird for Ipad, and other mobile devices.
1 Like
Judgy_Oreo
(DisplayName)
April 12, 2022, 11:00am
#6
Can you send the properties of one of the buttons?
position is {0.764, 0},{0.044, 0}
size is {0.204, 0},{0.292, 0}
AnchorPoint is 0,0
Judgy_Oreo
(DisplayName)
April 12, 2022, 11:11am
#8
GloriousPowerXD:
AnchorPoint is 0,0
You need to set the AnchorPoint to 0, 0.5
Judgy_Oreo:
0, 0.5
All it did was put it slightly higher, other than that, it didnt fix the problem.
Judgy_Oreo
(DisplayName)
April 12, 2022, 11:15am
#10
You also need to set the position to {0.764, 0},{0.5, 0} WITH the AnchorPoint being 0, 0.5
Judgy_Oreo:
0, 0.5
this is what is looks like now.
And this is what it looks like in Ipad, which is much weirder
WhitexHat
(endriu)
April 12, 2022, 11:28am
#13
offset issues, can you provide a rbxmx file with the UI ?
LandnBlu
(Landon)
April 12, 2022, 11:36am
#14
You could use a UIAspectRatioConstraint
It literally says that I am using it…
Here is a file
GUI FIX PLS.rbxl (40.5 KB)
LandnBlu
(Landon)
April 12, 2022, 11:39am
#17
Hmm maybe try a UIScale
Also, use Scale not Offset
Again, I already did
I tried every solution I could find
Judgy_Oreo
(DisplayName)
April 12, 2022, 11:46am
#19
Are you sure you’ve properly scaled the background? Perhaps you can use UIAspectRatioContraints like someone else point out to make the background have the same shape.
The UiAspectConstraint is what is causing the problem, but without it, the gui looks squished in mobile.