name | type | arguments | Default | description |
---|---|---|---|---|
key | string | Phaser.Textures.Texture | <optional> |
The key, or instance of the Texture this Game Object will use to render with, as stored in the Texture Manager. |
|
frame | string | number | <optional> |
An optional frame from the Texture this Game Object is rendering with. |
|
width | number | <optional> | 256 |
The width of the Nine Slice Game Object. You can adjust the width post-creation. |
height | number | <optional> | 256 |
The height of the Nine Slice Game Object. If this is a 3 slice object the height will be fixed to the height of the texture and cannot be changed. |
leftWidth | number | <optional> | 10 |
The size of the left vertical column (A). |
rightWidth | number | <optional> | 10 |
The size of the right vertical column (B). |
topHeight | number | <optional> | 0 |
The size of the top horiztonal row (C). Set to zero or undefined to create a 3 slice object. |
bottomHeight | number | <optional> | 0 |
The size of the bottom horiztonal row (D). Set to zero or undefined to create a 3 slice object. |