| Name | Type | Description |
|---|---|---|
options |
NineSliceSpriteOptions | Texture |
Options to use |
options.texture |
The texture to use on the NineSlicePlane. |
|
options.leftWidth |
Width of the left vertical bar (A) |
|
options.topHeight |
Height of the top horizontal bar (C) |
|
options.rightWidth |
Width of the right vertical bar (B) |
|
options.bottomHeight |
Height of the bottom horizontal bar (D) |
|
options.width |
Width of the NineSlicePlane, setting this will actually modify the vertices and not the UV's of this plane. |
|
options.height |
Height of the NineSlicePlane, setting this will actually modify the vertices and not UV's of this plane. |
Example
import { NineSlicePlane, Texture } from 'pixi.js';
const plane9 = new NineSlicePlane(Texture.from('BoxWithRoundedCorners.png'), 15, 15, 15, 15);