unity-ui-procedural
Installation
SKILL.md
Unity UI Toolkit Procedural UI
Build lightning-fast, highly dynamic user interfaces entirely through code. This skill enables the "Logic-First" UI workflow, perfect for complex systems like inventories, tooltips, and dynamic HUDs.
Core Features
- Fluent Hiyerarşi Construction: Use chained extension methods like
.CreateChild<T>()and.WithClass()to build UI trees that read like documentation. - Generic Pointer Manipulators: Decouple interaction logic (Drag, Resize, Selection) from visuals using the
ManipulatorAPI. - No-Builder Workflow: Eliminates the need for complex UXML files, making UI version-control friendly and procedurally scalable.
- BEM Integration: Extension methods prioritize CSS class application to maintain a clean styling system.
Core Files (Max 3)
UIToolkitExtensions.cs.txt: Generic methods for chaining element creation and styling.DragManipulator.cs.txt: A cross-platform pointer-based drag system for any VisualElement.ProceduralViewExample.cs.txt: A "Hotbar/Inventory" demo showing the power of the fluent syntax.