map_to_unity
Generate a Unity UGUI mapping spec from a Figma frame: map constraints to RectTransform anchors, auto-layout to layout groups, and get component suggestions with confidence scores and warnings.
Instructions
Produces a Unity UGUI mapping spec from a Figma frame. Maps Figma constraints to RectTransform anchors, auto-layout to HorizontalLayoutGroup/VerticalLayoutGroup, and suggests appropriate Unity components per node type. Includes confidence scores for inferred components and warnings for unknown constraints or unsupported effects.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_id | Yes | The node ID of the frame to produce a Unity mapping spec for | |
| file_key | Yes | The Figma file key (from the file URL) | |
| access_token | Yes | Your Figma personal access token | |
| canvas_width | No | Target Unity canvas width in pixels | |
| canvas_height | No | Target Unity canvas height in pixels |