F8 Editor UI Workflow
Designf8-editor-ui-workflowF8 Editor UI Workflow is an Agent Skill for design published in the TippingGame/F8Framework repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Use when working with UI editor tools — sprite slicing, atlas tools, safe area setup, BaseView template creation, and UI utility components in F8Framework.
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/TippingGame/F8Framework/blob/HEAD/Tests/AISkills/f8framework-skills/editor/f8-editor-ui-workflow/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/f8-editor-ui-workflow, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
UI Editor Workflow
Use this skill when
- The task involves UI editor tools like sprite slicing, atlas management, or template creation.
- The user asks about nine-patch auto-slicing, atlas cutting, or image size optimization.
Path resolution
- Editor code: Assets/F8Framework/Editor/UI
Sources of truth
- Editor module: Assets/F8Framework/Editor/UI
- Test docs: Assets/F8Framework/Tests/UI/README.md
Key editor features
| Feature | Description |
|---|---|
| Nine-Patch Auto-Slice | Automatically cuts middle uniform color area to reduce image size |
| Atlas Slice | Cuts sprite atlas (requires Read/Write enabled, compression None, pre-sliced in Sprite Editor) |
| Image Size to 4x | Sets image dimensions to multiples of 4 (optimal for compression) |
| Collect Chinese Text | Scans all UI Chinese text into localization table |
| Create BaseView Template | Right-click → F8 UI → Create BaseView code template |
Workflow
- Create UI prefab in
AssetBundlesorResources. - Right-click → F8 UI → Create BaseView to generate template.
- Attach generated script to prefab root.
- Use Inspector component binding to auto-generate code.
- Use editor tools for image optimization:
- Nine-patch auto-slice for large uniform images
- Size-to-4x for compression optimization
- Atlas slice for pre-sliced sprite sheets
- Use Collect Chinese Text to populate localization table.
Common error handling
| Error | Cause | Solution |
|---|---|---|
| Atlas slice fails | Read/Write not enabled or not pre-sliced | Enable Read/Write, set compression to None, slice in Sprite Editor |
| BaseView already exists | Duplicate script generation | Delete old script or rename |
Output checklist
- BaseView template created and attached.
- Image optimization tools applied.
- Localization text collected if applicable.