Modern auto-layout for Unity uGUI. One component, five layout types, six sizing modes - Hug, Fill, Percentage, the vocabulary designers already use. Burst-compiled, drop-in on existing UI.Compatible with Built-in, URP, and HDRP. AutoLayout PRO is a pure uGUI layout engine - it manipulates RectTransforms only and contains no shaders or render-pipeline-specific code, so the active SRP has no effect on its behavior.One component, every layoutAutoLayout PRO provides a single AutoLayout component that you can add to any RectTransform and you have the whole layout system: Row, Column, Grid, Absolute, or a Custom algorithm. The same inspector fields cover sizing (Pixels, Hug, Fill, Percentage, AspectRatio, TextSize), alignment, padding, gap, wrap, and overflow. Switch layout types in the inspector fields adapt. AutoLayout is one component, and it handles the layout on every screen in your project.A workflow designers already knowHug shrink-wraps to children. Fill distributes remaining space by weight. Percentage is an explicit share of the parent. AspectRatio drives one dimension from the other. TextSize sizes to the rendered glyph box. No anchor math, no mental translation, no leaky abstractions. The same vocabulary your designers use to lay out a screen is the vocabulary you set in the inspector.Built for real product UIsAround the core AutoLayout component, the package ships a small set of bonus controls built on the same engine. You don't have to use them - but when you need virtualization, a custom dropdown, or a scroll container, they're already there and Burst-driven.- CSS-style Grid with track templates, repeat(), column/row spans, and dense auto-flow - built into AutoLayout. Define "200px 1fr 2fr" or "repeat(3, 1fr)" and the layout resolves in Burst.- Absolute positioning with anchor presets (TopLeft, Centered, Fill, Stretch) - built into AutoLayout. For overlays, badges, and floating UI on top of your auto-layouts.- Virtualized ListView, GridView, and Carousel - separate controls built on AutoLayout. Thousands of items at a steady framerate, with object pooling, multi-prefab support, and dynamic item sizing.- Native ScrollView and Dropdown - separate controls built on AutoLayout. Nested scrolling, elastic bounds, click-outside-to-close, no dependency on Unity's built-in Dropdown.Designer-friendly editorModern editor experience: color-coded padding / margin / gap gizmos in the Scene View, drag-to-reorder handles on children, smart alignment guides, a custom UIElements inspector with unified value+unit dimension fields, and hierarchy icons that show layout islands and dirty state at a glance.Adopt incrementallyAutoLayout PRO coexists with Unity's built-in LayoutGroup and ContentSizeFitter components on the same Canvas. There's no engine-wide migration, no rewrite, no commitment - convert a single screen, ship it, and convert the next one when you're ready. The headless core is platform-agnostic and contains no Unity UI dependencies, so the same engine powers the shipped uGUI adapter and is ready for IMGUI / UI Toolkit adapters and custom render backends.Performance under the hoodThe core layout pass is fully Burst-compiled and zero GC allocation. A three-phase algorithm (bottom-up intrinsic sizing → top-down space distribution → positioning) runs on blittable UINode structs. An incremental rebuild system tracks dirty flags per-axis and only recalculates the subtree that actually changed. Independent subtrees are split into Layout Islands so a change in one screen never touches another.What's in the box- Burst-compiled headless layout engine and uGUI adapter.- Five virtualized controls: ListView, GridView, Carousel, ScrollView, Dropdown.- AutoUI fluent builder for runtime UI construction.- YAML serialization for layout export/import.- Tweening API with a pluggable backend interface - bring your own tweening library.- Custom UI Toolkit inspector, Scene View gizmos, and hierarchy integration.- Per-component documentation at autolayoutpro.com.Built for Unity 2023.2 and newer (including Unity 6). Uses Burst, Collections, Mathematics, and TextMeshPro.Sizing- Six sizing modes: Pixels, Hug, Fill (weight-based), Percentage, AspectRatio, TextSize- Min/Max constraints per axis on any sizing mode- Bidirectional resolution: bottom-up intrinsic sizing + top-down space distributionLayout types- Row, Column, Grid, Absolute, None, Custom- Wrap layout with configurable row/column gap and reverse direction- Main-axis alignment: Start, Center, End, SpaceBetween, SpaceAround, SpaceEvenly- Cross-axis alignment with per-child Self-Alignment overrideGrid- CSS-style track templates with repeat() (counted and infinite-cycle forms)- Track units: `f` or `fr` (fill, CSS-Grid compatible), `px`, `%`, `hug`- Column/row spanning, explicit placement, dense auto-flow- Per-container and per-item Horizontal/Vertical alignment (Stretch, Start, Center, End)Performance- Burst-compiled three-phase algorithm on blittable UINode structs- Zero GC allocation in the core layout pass- Incremental rebuild with per-axis dirty tracking (width, height, X-position, Y-position tracked independently)- Smart dependency propagation - recalculates only nodes affected by a change- Layout Islands - independent subtrees calculated in isolation- Cached node dependency flags, recomputed only on topology changes- NativeArray-backed storage with persistent allocation reused across framesVirtualized controls- ListView: object-pooled, multi-prefab, dynamic item sizing, vertical and horizontal, configurable overscan, three binding patterns (delegate, interface, callback)- GridView: virtualized uniform-item grid with snap scrolling, vertical and horizontal- Carousel: Slide / Loop / Fade modes, per-page, focus (Start or Center), pluggable visual effects via ICarouselEffect- ScrollView: inertia, elastic bounds, 2D scrolling, nested scroll forwarding, RectMask2D auto-clipping- Dropdown: AutoLayout-native, configurable open direction, click-outside-to-close, pooled item rowsEditor experience- Scene View gizmos: padding (green), margin (orange), gap (pink), grid tracks, grid item index labels, selected-element dimensions pill- Custom UIElements inspector with unified dimension fields (value + unit), visual alignment picker, grid template editor, multi-object editing, locked-mode indicator- Hierarchy icons for island roots, dirty state, and AutoLayout presence- Hover highlights, drag-to-reorder handles with insertion preview, smart alignment guides for absolute-positioned children- Pixel-perfect overlay tool with screen and world anchor modesDeveloper API- AutoUI fluent builder: AutoUI.Row(), AutoUI.Column(), AutoUI.Grid(), AutoUI.ScrollView(), AutoUI.ListView(), AutoUI.CreateCanvas()- YAML layout serialization for export/import and version-controlled layout diffs- Headless engine is platform-agnostic - no Unity UI dependency - and supports custom adapters- ICustomLayoutAlgorithm plugin interface for registering your own layout algorithms into the three-phase pipelineDocumentation- Online docs at autolayoutpro.comRequirements- Unity 2023.2 or newer (including Unity 6)- Burst 1.8.13+- Collections 2.1.4+- Mathematics 1.3.1+- TextMeshPro 3.0.7+Claude was used as a coding assistant during development. All architecture, design, and final code decisions are the developer's own. The package contains no AI/ML code or runtime calls.





