Hello and welcome to the layout element headache. I wish we can sort this out once and for all.
The layout groups in Unity UI are pretty fancy, but when it comes to the design, then its a pain in the A place.
Basically the toggles “Child Control Size” and “Child Force Expand” are not doing the job they are designed for, as when I have a panel with two sub panels, one in the left and one in the right.
The Layout Group components are going to mess up the whole UI canvas. They dont match in scale most of the time. And especially when you start using the Padding feature of Layout Groups.
It even gets worse when you add buttons and other objects inside of a group…
The layout element Flexible Width and Flexible Height should be the ones to set the constant sizes of each Rect Transform, but in actuality they are ignored in most cases. If Child Force Expand is toggled, then they result in absolute nonsense. The same goes with preferred width.
So is anyone familiar with how to properly set up the layout groups? I always end up frustrated when trying to get a normalized table design on the UI, as if its an impossible task…
And when I start using RenderTextures … oh my
In one way or another the UI breaks. Should I simply drop the idea of using Layout elements? It really feels like a good way to create UI but then there’s the above.
Any ideas are welcome!