Skip to main content

AF Content Driven UI Sizing

for Unity UI (uGUI)

Automatic Content-Based Sizing
Automatically resize UI elements to fit their text, images, and other supported content. No more manually adjusting dimensions whenever content changes

AF Wrap Layout Group Runtime

Independent Width & Height Control
Enable responsive sizing separately for width and height, with optional minimum and maximum limits for each dimension

Text, Images & Mixed Content
Supports TextMesh Pro, Image, and RawImage components, including combinations of text and graphics within the same UI element

Layout Group Integration
Works with Horizontal, Vertical, and Grid Layout Groups, including nested layouts and content arranged using AF Wrap Layout Group

Input Field Support
Automatically sizes TMP and standard Input Fields based on placeholder or entered text, updating dimensions after editing is completed

Unity 6 / UGUI / TMP / Built-In / URP / HDRP / SRP

Easy Inspector Setup / Drop-in Component / Runtime Refresh API

Soon on Unity Asset Store

Features

  • Automatic content-driven UI sizing
  • Independent responsive width and height
  • Optional minimum and maximum dimensions
  • TextMesh Pro, Image and RawImage support
  • Mixed text and image content
  • TMP and standard Input Field support
  • Placeholder and entered-text sizing

Developers

  • Drop-in component for existing uGUI elements
  • Inspector-based configuration
  • Automatic child content detection
  • Works with LayoutElement preferred sizes
  • Horizontal, Vertical and Grid Layout Groups
  • Compatible with AF Wrap Layout Group
  • Full C# source included

Technical details

  • Built for Unity 6 and newer
  • Uses standard Unity UI (uGUI)
  • TextMesh Pro support
  • No additional third-party dependencies
  • No precompiled runtime DLLs
  • Compatible with Built-in, URP, HDRP and Custom Render Pipelines
  • UI Toolkit is not supported