Hello there
I’m working on a game and have to integreate this rewards panel into Unity, so it’s responsive and auto-adjusting:
The way that it’s supposed to work is that each reward might get disabled, and the rest auto-adjusts to the center. And my question is: what is the best way to achieve the most professional and cleanest result in such a case?
They way I’ve approached it is that I’ve created a holder of all the rewards and added Horizontal Layout Group and Content Size Fitter to it.
Here is my hierarchy:
The rewards themselves have Vertical Layout Group for holding smaller text such as “Cash”, etc. always in the center of the number above it:
The plus signs have Layout Element added to them to force custom spacing:
And ok, I kinda did it:
But… The moment I change the values for sth bigger, this is what happens:
And this is where I’m not sure that this is “professional”. I don’t know how to tackle this issue. How can I make it stay within the popup, but still keep the proportions of everything (sizes, spacing, etc.). I know that it’s the “fault” of Content Size Fitter that it’s stretches, but if I don’t use it, it’s even worse:
And this is where I’m lacking the experience of a seasoned tech artist - I don’t know how to get out of this issue without comproizing the least amount of things while still keeping elegance and functionality.
At least when I’m disabling certain elements, it’s nice and responsive:
How would you tackle that? Do you have any advice for me?
Thank you so much for help








