NineSliceSprite
Creates a NineSliceSprite
Allows you to stretch a texture using 9-slice scaling. The corners remain unscaled (useful for buttons with rounded corners, for example) and the other areas scale horizontally and/or vertically.
API
NineSliceSprite Attributes
| Name | Type | Default | Description |
|---|---|---|---|
| texture | string object | undefined | The texture to use on the NineSliceSprite. |
| left-width | number | undefined | The width of the left column |
| right-width | number | undefined | The width of the right column |
| top-height | number | undefined | The height of the top row |
| bottom-height | number | undefined | The height of the bottom row |
more props in Container Attributes and PixiJS NineSliceSprite
NineSliceSprite Events
| Name | Type | Description |
|---|---|---|
| effect | function | Custom effect function called each frame |
more events in Container Events