Game Development Reference
In-Depth Information
Creating the
Grid Layout Group
is done in exactly the same way as the vertical and
horizontal layout groups but selecting the
Grid Layout Group
component instead.
Setting the
Width
and
Height
to
200
, and adding
4
children instead of
3
. This would
result in the following screenshot:
An example showing 4 sprites arranged in a 2x2 grid by the layout group
When we look at the
Inspector
window, the flexibility we have becomes
more evident: