Click or drag to resize

PackedGridLayoutGroup Properties

The PackedGridLayoutGroup type exposes the following members.

Properties
  NameDescription
Public propertyBiggerChildrenFirst
If true, the layout will start with bigger children. The starting position is defined by the 'Child Alignment' property
Public propertyChildrenControlSize
The specified axis will have the 'Preferred' size set based on children
Public propertyForcedSpacing
The spacing to use between layout elements in the grid on both axes. The spacing is created by shrinking the childrens' sizes rather than actually adding spaces. If you want true spacing, consider modifying the children themselves to also include some padding inside them
Public propertyNumPasses

This refers to the number of different strategies to use when packing children. Set to as many as possible, if the FPS allows. See Packer2DBoxNodeChoosingStrategy.

At the moment (15 Mar 2019), more than 1 pass is executing only if the boxes don't all fit in the available space, as the first strategy (MAX_VOLUME) seems to always perform the best

Top
See Also