Okay so I am trying to create a widget for a keypad i am working on and i have everything done but the buttons keep either offsetting themselves or resizing themselves depending on the window size.
Yes i understand that the buttons location is relative to the location of the Anchor and maybe i am misunderstanding something here but no matter what location i have set the anchors to they always end up changing when i resize the window.
About to quit my entire project just because of this LMAO (joking not joking)
Hello @TTV_KingImpurity ,
You could also use a Uniform Grid Panel, which is a UMG container that organizes its children in a perfectly uniform grid, where each cell has the same size.
This makes it very useful because you can choose in which row and column each widget goes, and the panel will automatically distribute them evenly without deforming when the resolution changes.
Here’s a quick step-by-step guide on how to create it and set it up correctly:
Then set Position X and Y to 0, and set the Size to whatever you want the panel’s dimensions to be. In this case, I used 300 X and 400 Y.
Alignment defines from which point the panel aligns itself within the space it occupies. If you want it centered, I recommend setting it to 0.5 on both values.
In Slot Padding, configure the spacing between the buttons. I used 2.0.
With this setup, your keypad should work perfectly, without any buttons shifting out of place or resizing unexpectedly.
I’m also leaving you the documentation about anchors, which might be useful for you
And about what you said
don’t worry, it’s completely normal when you’re making a game. We all go through moments where a small detail ends up being way more frustrating than it should be.
The important thing is to keep going and not give up so easily. If you need to ask something or need help with the keypad logic or any other part of the project, feel free to post in the forum. There’s always someone willing to give you a hand or guide you toward a solution.