How do you make the spaces between the UI elements smaller than the limit?

Hello everyone,

I have been adding a lot more trucks to my game recently and am having to constantly increase the size of the horizontal scrolling frame causing the truck elements to be more spaced out but the padding property in my UIGridLayout, is there any possible fix for this or something I could use instead of a grid layout? I can’t manually adjust the truck frames because their LayoutOrder is determined based on the price of the truck.

image

  1. What do you want to achieve?
    Make the spaces between the truck elements smaller

  2. What is the issue?
    The lowest the padding goes is 0.001

  3. What solutions have you thought of so far?
    None

Use the offset instead of scale.
{0, 2}; {0, 2}

1 Like

The spaces will appear much larger on mobile devices:
image

In my opinion, not a big issue.
However, if that is an issue for you, make a script that will check whether the screen resolution is lower than X and then set the offset to 1.

2 Likes