OpenParable
Skip to content
← Back to skills

F8 Editor UI Workflow

Design
f8-editor-ui-workflow

F8 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.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. 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

  1. 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

FeatureDescription
Nine-Patch Auto-SliceAutomatically cuts middle uniform color area to reduce image size
Atlas SliceCuts sprite atlas (requires Read/Write enabled, compression None, pre-sliced in Sprite Editor)
Image Size to 4xSets image dimensions to multiples of 4 (optimal for compression)
Collect Chinese TextScans all UI Chinese text into localization table
Create BaseView TemplateRight-click → F8 UI → Create BaseView code template

Workflow

  1. Create UI prefab in AssetBundles or Resources.
  2. Right-click → F8 UI → Create BaseView to generate template.
  3. Attach generated script to prefab root.
  4. Use Inspector component binding to auto-generate code.
  5. 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
  6. Use Collect Chinese Text to populate localization table.

Common error handling

ErrorCauseSolution
Atlas slice failsRead/Write not enabled or not pre-slicedEnable Read/Write, set compression to None, slice in Sprite Editor
BaseView already existsDuplicate script generationDelete old script or rename

Output checklist

  • BaseView template created and attached.
  • Image optimization tools applied.
  • Localization text collected if applicable.