Better Grid Layout Group extends the normal Grid Layout Group.


Besides the Size Modifiers for Padding, Spacing and Cell Size, there is an extra option if you select "Fixed Column Count" or "Fixed Row Count" as a constraint: Fit


If "Fit" is enabled, the cell height (fixed row count) or cell width (fixed column count) are stretched or shrinked to exactly fit all together inside the parent while respecting the size of the padding and spacing.

By also checking "Keep Cell Aspect Ratio", the cells height or width is adjusted so that it retains the given aspect ratio as specified by the optimized size for the Cells.



Hidden Properties

  • padding
  • spacing
  • cellSize
  • constraint
  • constraintCount
  • childAlignment
  • startAxis
  • startCorner