A complete attribute-driven Unity form builder that generates styled runtime and Editor forms using UI Toolkit or UGUI, with validation, theming, conditional logic, and editable collections.UI Form Builder – Form Forge is an attribute-driven form generation framework for Unity. It converts ordinary annotated C# classes into complete, styled, and interactive forms without requiring you to manually create every field, label, button, validation message, or layout.Add [FormTarget] to a serializable class, decorate its fields and methods with Form Forge attributes, and generate the form using either the UI Toolkit or UGUI rendering backend. Both backends use the same data model, attributes, validation rules, and conditional logic, allowing you to change rendering systems without rewriting your form classes.Form Forge supports runtime-generated interfaces, Editor previews, configurable themes, reusable UGUI control prefabs, nested data structures, editable collections, custom icons and fonts, and optional Editor-time UGUI baking.The package is supplied as precompiled managed assemblies. You write and maintain your own attributed data classes while the framework handles form generation, binding, validation, styling, and interaction.Key FeaturesAttribute-Driven Form Generation: Create complete forms from plain serializable C# classes using [FormTarget] and field-level attributes.Two Rendering Backends: Generate forms with UI Toolkit, UGUI, or both in the same project.Runtime and Editor Workflows: Build interfaces dynamically at runtime, preview UI Toolkit forms in the Editor, or bake UGUI forms into editable hierarchies.Automatic Data Binding: Generated controls remain connected to the underlying class instance.Flexible Control Types: Supports sliders, numeric inputs, text fields, text areas, password fields, toggles, dropdowns, colour fields, vectors, buttons, and more.Nested Objects and Collections: Render nested classes, custom structs, arrays, and List values as expandable and editable form sections.Live Validation: Add required, length, numeric range, and regular-expression validation using attributes.Conditional UI Logic: Show, hide, enable, or disable fields based on the current value of another field.Custom Labels and Presentation: Configure labels, headers, icons, tooltips, placeholders, fonts, ordering, large titles, control images, and read-only fields.Theme Compiler: Customise layout, typography, and colour properties through a dedicated Editor window.Theme Presets: Includes Dark, Light, Midnight Blue, High Contrast, and packaged default theme options.Asset Customisation: Assign global or per-control images, icons, UI Toolkit fonts, and TextMeshPro fonts through keyed asset references.UGUI Control Registry: Map field types and control variants to your own reusable UGUI prefabs.UGUI Baking: Generate a static UGUI hierarchy in the Editor for manual arrangement while retaining runtime data binding.Live Preview: Preview any compatible [FormTarget] class instantly through the UI Toolkit backend.Project-Wide Validation: Scan attributed classes and report invalid or incompatible attribute usage.Settings Persistence: Includes a JSON save and load helper using Application.persistentDataPath.Backend-Independent Schema: Use the same attributed data classes and business rules with both UI systems.Demo Content Included: Example settings forms, scenes, icons, backgrounds, fonts, themes, and configured assets demonstrate both backends.Genre Independent: Suitable for settings menus, character editors, configuration panels, debug tools, admin interfaces, data-entry screens, and other form-based workflows.RequirementsUnity Version: Unity 2022.3 LTS or later recommendedUGUI Dependency: TextMeshProUGUI Setup: TextMeshPro Essential Resources must be imported before using UGUI generation or bakingAsset Type: Editor and runtime frameworkSupported Rendering WorkflowsRuntime UI Toolkit form generationRuntime UGUI form generationUI Toolkit Editor live previewOptional Editor-time UGUI bakingUI Toolkit and UGUI are used side by sidePrefab-based UGUI control customisationCompiled USS theme generationAsset-based icon, image, and font configurationSupported Field TypesfloatintboolstringEnumsVector2Vector3ColorCustom serializable structsNested serializable classesListT[]Collections may contain supported primitive, enum, vector, colour, class, or struct types.Supported Controls and BehavioursSlider controlsNumeric input fieldsText fieldsMultiline text areasPassword fieldsToggle controlsEnum dropdownsVector controlsColour controlsRead-only fieldsParameterless method buttonsEditable lists and arraysNested foldout groupsAdd and remove collection itemsLive field validationConditional visibilityConditional interactabilityRuntime tooltipsCustom labels and headersPlaceholder textField and button orderingCustom icons, fonts, and control imagesValidation FeaturesRequired valuesMinimum string lengthMaximum string lengthMinimum numeric valueMaximum numeric valueRegular-expression validationMultiple validators on one fieldLive validation after value changesValidation after form button actionsProject-wide attribute validationTheme and Customisation ToolsLayout and sizing configurationTypography configurationColour palette configurationDark theme presetLight theme presetMidnight Blue presetHigh Contrast presetPackaged default themeJSON theme import and exportAutomatic or manual stylesheet compilationUnused override pruningGlobal control image customisationUI Toolkit font assignmentTextMeshPro font assignmentSprite and texture key mappingSprite atlas sub-asset supportPer-field and per-button appearance overridesIncluded ContentUI Toolkit demonstration scenesUGUI demonstration scenesExample Audio, Graphics, Gameplay, and Main Menu settings classesDemo icons and background spritesDemo fontsDefault USS Property SchemaDefault Theme DataCompiled FormBuilder.ussForm Builder Asset Config workflowUGUI Control Registry supportSet up and usage documentationPerformanceForms are generated from cached reflection-based schema information.Centralised form definitions reduce repeated UI setup across scenes and scripts.UI Toolkit forms are created without requiring prefabs or pre-baked layouts.UGUI uses reusable prefab mappings through the Control Registry.Theme styling is compiled into a USS stylesheet for runtime use.Asset references are stored in a central FormBuilderAssetConfig.Runtime monitoring is not required after controls have been bound, except where live validation or conditional rules react to value changes.Support and FeedbackWe value your feedback and are here to help!Reach out to 300 Mind via our contact page, email us directly, or join our Discord community for support, updates, and discussions.Our team is ready to help with any questions you might have about setup, implementation, or customization.We have used the AI-generated background image in the demo scene.

