官术网_书友最值得收藏!

Types of Automatic Layout Groups

When a UI object has an automatic layout group component attached to it, all of its children will be aligned, resized, and positioned based on the parameters of the layout component. There are three automatic layout group options: Horizontal Layout Group, Vertical Layout Group, and Grid Layout Group.

The following screenshot shows three panels (represented by gray rectangles), each with six UI image children (represented by the black rectangles): the first panel has a Horizontal Layout Group component, the second panel has a Vertical Layout Group component, and the third panel has a Grid Layout Group component:

Automatic Layout Groups Example 1 in the Chapter3Text Scene

From the preceding screenshot, you can see clearly what the three types of Automatic Layout Groups accomplish. You can use any combination of the three to create nested, perfectly spaced layouts, as follows:

Automatic Layout Groups Example 2 in the Chapter3Text Scene

Let's look at each of these layout groups individually and explore their various properties.

主站蜘蛛池模板: 郁南县| 吴川市| 南部县| 炎陵县| 永顺县| 沙雅县| 边坝县| 大安市| 黄浦区| 溧阳市| 余干县| 茌平县| 大邑县| 泸定县| 林芝县| 恩平市| 梧州市| 明光市| 祁门县| 大兴区| 九龙坡区| 商水县| 齐齐哈尔市| 镶黄旗| 淮阳县| 黄大仙区| 会东县| 遂川县| 葵青区| 砀山县| 惠州市| 兴化市| 玉林市| 西青区| 当涂县| 察隅县| 天峻县| 运城市| 兖州市| 二连浩特市| 甘孜县|