Update VariableGridLayoutGroup.cs
Update VariableGridLayoutGroup.cs

1. Complete rewrite of core code. Cell structure and sizes are cached to avoid multiple calculations.
2. Columns and rows only stretch to the same size as the largest if you check Force Child Expand Width and Force Child Expand Height.
3. There is an extra field - Cell Alignment. If a cell is not expanding to the size of the column/row, you can choose where to align it within the space available for the cell.
4. An extra component VariableGridCell.cs can be added to a child cell, in order to override the global parameters of the grid (expanding, alignment).
quoxel/VariableGridLayoutGroup