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. |
|
vertices | Array.<number> | <optional> |
The vertices array. Either |
|
uvs | Array.<number> | <optional> |
The UVs pairs array. |
|
indicies | Array.<number> | <optional> |
Optional vertex indicies array. If you don't have one, pass |
|
containsZ | boolean | <optional> | false |
Does the vertices data include a |
normals | Array.<number> | <optional> |
Optional vertex normals array. If you don't have one, pass |
|
colors | number | Array.<number> | <optional> | 0xffffff |
An array of colors, one per vertex, or a single color value applied to all vertices. |
alphas | number | Array.<number> | <optional> | 1 |
An array of alpha values, one per vertex, or a single alpha value applied to all vertices. |