1. First create a container to hold the contents of the list item.
The Panel is used here as a container.
Be careful here!
The Grid Layout Group is added to the game object in the container.
Also, only child objects of the container object have an arrangement effect.
That
The nodes are as follows:
Root = Child1 = Child3
Root = Child2
Root is the container
The arrange effect is only valid for Child1 and Child2.
2. In the Hierarchy window, select Panel object, Position select "Center", width setting 500, high setting 400.
3. In the Hierarchy window, select the Panel object to create two sub-objects of the Panel object, which also uses the Panel component, position setting "Center", width and height set to 50, color selection red, adjust the transparency.
and rename "Item".
4. Add the Grid Layout Group component to the Panel object.
The effect after adding:
Unity3d the Grid Layout Group component that uses the UI.