figma_generate_unity_prefab
Converts a prepared Figma design packet into a statically verified Unity UGUI YAML prefab, enabling direct design-to-Unity asset generation with configurable font and component settings.
Instructions
Generate a staged, statically verified UGUI Direct YAML Prefab snapshot.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| overwrite | No | Replace unchanged files owned by the same Packet manifest. | |
| packet_id | Yes | Generation-ready Packet id returned by figma_prepare_design. | |
| asset_root | No | Generated asset directory below Assets/. | Assets/FigmaMCP |
| prefab_name | No | Optional prefab name. | |
| text_font_guid | No | Optional default Unity Font guid from an imported .ttf/.otf asset. | |
| component_policy | No | Interactive component policy. | conservative |
| include_reference | No | Copy the whole-frame Figma reference asset when available. | |
| text_font_map_json | No | Optional source-font-name to Unity Font guid JSON mapping. | |
| unity_project_path | Yes | Unity project root containing Assets and ProjectSettings. | |
| use_text_components | No | Use editable UnityEngine.UI.Text nodes. | |
| force_overwrite_modified | No | With overwrite=true, also replace owned files whose content no longer matches the previous manifest hash. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||