Home

Awesome

AdaptiveGrid

Overview

Adaptive UIBehaviour with auto-layout and flexible settings.

  1. No need to count or control cell size manually (in units) and ajust to parent size changes.
  2. Elements dont freeze like in LayoutGroup (it transforms not driven by object). Means it could be animated or used any other way.
  3. Rebuilds only in regular cases (OnTransformChildrenChanged, OnTransformChildrenChanged, OnCanvasHierarchyChanged, OnValidate).
  4. Easy to extend: just create class inherited from Preset and its enum-value for inspector (ArrangeLayout or ScaleMethod).

How to use

  1. Import package
  2. Add component AdaptiveGrid to any object
  3. Choose arrange mode:

Component automatically arrange elements in container (fits content if it is Image)

Reacting to children order and composition changes

Flex padding settings

Fixed NxM grid and MaxRects bin pack by Image content