Type-safe code generation for Unity UI Toolkit. Automatically generate strongly-typed C# classes from UXML files with full IntelliSense support and compile-time safety.TypedUxml generates strongly-typed C# classes from your UXML files — no more string queries, no more runtime surprises.Why TypedUxml? Standard UI Toolkit code queries elements by string name: typos compile fine, refactoring breaks silently, and errors surface only at runtime. TypedUxml replaces that with generated, compile-time-safe properties — full IntelliSense, type checking, and null-safety out of the box.Key featuresAuto-generated typed class for every UXML file, updated on saveLive Preview Panel — see the generated code before writing a lineTyped access to nested templates and custom [UxmlElement] controlsOptional TryGet* helpers, static factory methods, and partial hooksSmart incremental cache — only regenerates what changedGlobal and per-file JSON configurationGetting startedImport the packageOpen Window → UI Toolkit → TypedUxml PreviewSelect any .uxml in the Project window — preview appears instantlySave the file to generate, or click ⚡ in the panelFull documentation included: Quick Start, Configuration, API Reference, Examples, and Troubleshooting.Requirements: Unity 6.0+, UI Toolkit (built-in)Generated code Each UXML file produces a partial C# class with get-only typed properties for named elements, IReadOnlyList collections for duplicate names, typed template view properties for nested instances, optional TryGet* helpers ([NotNullWhen(true)]), static factory methods (FromVisualTree, LoadFromAssetDatabase, LoadFromResources), and partial hooks (OnBeforeAssign / OnAfterAssign).Configuration Global settings in Assets/TypedUxml/typeduxml.config.json (also editable via Project Settings). Per-file overrides in {File}.uxml.config.json placed next to the UXML. Fields include: nullable properties, TryGet* generation, name/USS constants, base class, constructor preset, static methods, partial hooks, namespace rules, and advanced query expressions.Integration Generation triggers automatically via a postprocessor on UXML save. Manual generation available from the Preview Panel (⚡) or right-click context menu (Assets/TypedUxml/Generate Class). Cache stored in typeduxml.cache.json — only regenerates when UXML or config changes. Cache can be cleared via Tools → Typed UXML → Clear Cache.Type resolution Standard UI Toolkit elements resolved from XML namespace. Custom controls resolved via [UxmlElement] and XML namespace declarations. Template typed properties resolved from [UxmlView] bindings or path-based namespace rules.Namespace resolution Namespace built from rootNamespace + folder path relative to namespacePathAnchor.AI tools were used during development for code review, unit test generation, and documentation writing.





