set_slice_pivot
Set a slice's pixel pivot point relative to its top-left corner so the offset exports into Unity .meta files via export_unity_slices. Use it to align sprite anchors before asset export.
Instructions
Set a slice's pivot point, in pixels relative to the slice's top-left. This
pivot is exported into the Unity .meta by export_unity_slices. One undo
step. 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": {
"name": "<name>",
"pivot_x": "<pivot_x>",
"pivot_y": "<pivot_y>"
},
"name": "set_slice_pivot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| name | Yes | ||
| pivot_x | Yes | ||
| pivot_y | Yes |