[Unity] Display all child objects + UI automatically arranges components Grid Layout Group

When I was writing the code today, I found that there was a lack of a step process display diagram, so I built a bunch of pictures with empty objects, and then sorted them using the Grid Layout Group component. The brief description is as follows:

As shown above, the red frame part is the size limit of your child object, X is the width, Y is the height 

As shown in the figure above, the red frame part is the size of the child object from the boundary, in order of left, right, up, down

 

These four are not very useful. They should be adjusted in order. If you have needs, you can debug them yourself. 

At the same time, there is a shortcut key to say:

alt+keyboard right key, you can expand all sub-objects under this object, no hierarchy

 

Acho que você gosta

Origin blog.csdn.net/CSDN_6954/article/details/121285185
Recomendado
Clasificación