NineSlicePlane
Creates a NineSlicePlane
Allows you to stretch a texture using 9-slice scaling. The corners will remain unscaled (useful for buttons with rounded corners for example) and the other areas will be scaled horizontally and or vertically
API
NineSlicePlane Attributes
Name | Type | Default | Description |
---|---|---|---|
blend-mode |
| BLEND_MODES.NORMAL | The blend mode to be applied to the sprite. |
draw-mode |
| DRAW_MODES.TRIANGLES | The draw mode to be used. |
texture | string object | undefined | The texture to use on the NineSlicePlane. |
left-width | number | undefined | The width of the left column of the grid |
right-width | number | undefined | The width of the right column of the grid |
top-height | number | undefined | The height of the top row of the grid |
bottom-height | number | undefined | The height of the bottom row of the grid |
geometry | object | undefined | The geometry the mesh will use. |
more props in Container Props and PIXI.NineSlicePlane
NineSlicePlane Events
Name | Type | Description |
---|---|---|
render | function | custom render function |
more events in Container Events