Is there a way to automatically adjust the height of a row of a Grid Layout based on the cell content of that row?
Yes, you can use the AspectRatioFitter set to an aspect ratio and set to adjusting “based on height”
Thanks crispybeans, but the solution you offered didn’t quite work for me. You see I have a grid layout that can have any number of cells depending on the game stats. Each cell content is different and thus some cells must be larger than others to fit its content. However to keep cells properly aligned I want to make sure that the rows of the grid layout expand in height to accommodate for all the largest cell in the row.
I ended up hacking GridLayout.cs into a new AutoGridLayout.cs which automatically adjusts the height of the rows based on its cell sizes. It may not be very pretty but it gets the job done.