create_slice
Define a named slice region in a sprite with precise position and size. Optionally set a pivot point and save the slice for export.
Instructions
Create a named slice region in a sprite
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Sprite file | |
| sliceName | Yes | Name for the slice | |
| x | Yes | Left edge | |
| y | Yes | Top edge | |
| width | Yes | Slice width | |
| height | Yes | Slice height | |
| pivotX | No | Pivot X (optional) | |
| pivotY | No | Pivot Y (optional) | |
| savePath | No | Path to save |