Need help with scaling UI for devices



i’m trying to make a little fl studio thingy for my game. i have already tried using a uiaspectratio constraint and i am using a ui grid layout. however it turns out like this when i try to shrink the window or test on mobile.

TOP IMAGE: Mobile testing
BOTTOM IMAGE: Normal screen

Are you using offset or scale?

offset, i’m kind of new to using uigridlayout

Use scale. It will help you. Scale is based off the screen size

1 Like



i used scale for the uigridlayout
cellpadding: {0.01, 0},{0.06, 0}
cellsize: {0.001, 50},{0.29, 0}
i don’t think i did it right and i’ve read like 5 articles about this

Don’t use offset in cellsize! I think that may be the issue

1 Like

Use scale itll make it fit on more devices

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.