What problem does it solve?
This Skill guides developers in leveraging the engine's comprehensive UI infrastructure (Drawers, Elements, FieldEditors, EditorUIConstants) to build visually consistent, maintainable, and user-friendly editor panels and component editors. It eliminates the need to write repetitive ImGui code, ensuring a unified look and feel across the entire editor.
Core Features & Use Cases
- Reusable UI Components: Utilize
ButtonDrawer for consistent buttons, ModalDrawer for dialogs, and TextureDropTarget for asset drag-and-drop.
- Type-Safe Field Editors: Integrate
IFieldEditor for generic, reflection-based property editing in the Script Inspector.
- Global Styling: Enforce consistent sizing, spacing, and colors using
EditorUIConstants across all UI elements.
- Use Case: When developing a new
ContentBrowserPanel, this Skill ensures that asset previews use TextureDropTarget for drag-and-drop, action buttons use ButtonDrawer for consistent styling, and all spacing adheres to EditorUIConstants.
Quick Start
Explain how to use ButtonDrawer to create a primary action button and ModalDrawer for a confirmation dialog in a new editor panel.