Grid Layout Group

The Grid Layout Group component allows you to organize child objects in columns and rows in (you guessed it) a grid layout. It works similarly to Horizontal and Vertical Layout Groups but has a few more properties that can be manipulated.

To add a Grid Layout Group component to a UI object, select Add Component | Layout | Grid Layout Group from within the object's Inspector. If you click on the arrow next to the Padding property, you should see the following:

A few of the properties of the Grid Layout Group are the same as the other two Layout Groups, but let's look more closely at the properties unique to the Grid Layout ...

Get Mastering UI Development with Unity now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.