pack_sprite_atlas
Pack all PNGs from a folder into a single sprite atlas (atlas.png + JSON) to reduce draw calls and improve 2D rendering performance in Unity.
Instructions
Packt alle PNGs eines Ordners (rekursiv) in einen kohärenten Sprite-Atlas (atlas.png + atlas.json/JsonHash, POT, getrimmt) via free-tex-packer-core. Für 2D-Kohärenz
weniger Draw Calls. In Unity als Sprite (Multiple) slicen.
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": {
"input_dir": "<input_dir>",
"output_dir": "<output_dir>"
},
"name": "pack_sprite_atlas"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_dir | Yes | ||
| output_dir | Yes | ||
| name | No | atlas |