export_unity_sprite
Exports a horizontal sprite sheet and writes a Unity .meta file with named Multiple-mode sprites pre-sliced per frame, removing manual Sprite Editor slicing for Unity 2021.3+/6.
Instructions
Export a horizontal sprite sheet AND write the Unity .meta beside it,
pre-sliced into named Multiple-mode sprites (one per frame) — one action, no
manual Sprite Editor pass. alignment is one of center, top_left, top,
top_right, left, right, bottom_left, bottom, bottom_right, custom; custom
uses pivot_x/pivot_y (0..1, 0,0 = bottom left). Targets Unity 2021.3+/6.
Headless: pass file.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"png_path": "<png_path>"
},
"name": "export_unity_sprite"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| pivot_x | No | ||
| pivot_y | No | ||
| png_path | Yes | ||
| alignment | No | custom | |
| pixels_per_unit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| png | No | ||
| guid | No | ||
| meta | No | ||
| mode | No | ||
| frames | No | ||
| sprites | No | ||
| alignment | No | ||
| frame_size | No | ||
| png_exists | No | ||
| sheet_size | No | ||
| texture_size | No | ||
| pixels_per_unit | No |