export_to_game
Exports Aseprite sprites into a Godot or Unity project, placing PNGs, sliced metadata, and animation resources in the correct assets folder for engine use.
Instructions
Export the sprite into a game project in one action, ready to select in the
engine. game_dir is the project folder; it's remembered, so leave it out
after the first time. Godot is detected from project.godot, Unity from
Assets plus ProjectSettings, and any other folder gets a plain sheet.
Art goes in the project's existing sprites or assets folder, or a new
sprites (Assets/Sprites in Unity). Godot gets a PNG, plus a
SpriteFrames .tres if animated. Unity gets a PNG and a pre-sliced
.meta, using pixels_per_unit, and exporting again keeps the references
to it working. name defaults to the sprite's file name. Headless: pass
file.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "export_to_game"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| name | No | ||
| game_dir | No | ||
| pixels_per_unit | No |