set_slice_center
Define the stretchable region of a slice for 9-patch scaling by setting its center rectangle relative to the slice origin.
Instructions
Set a slice's 9-patch center rectangle (relative to the slice origin).
The center defines the stretchable region for 9-patch scaling in game engines.
Args: filename: Aseprite file to modify name: Slice name x: Center-rect left edge, relative to the slice y: Center-rect top edge, relative to the slice width: Center-rect width height: Center-rect height
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | ||
| name | Yes | ||
| x | Yes | ||
| y | Yes | ||
| width | Yes | ||
| height | Yes |