MeshConfig
<static> MeshConfig
name | type | optional | default | description |
---|---|---|---|---|
key | string | Phaser.Textures.Texture | Yes | The key, or instance of the Texture this Game Object will use to render with, as stored in the Texture Manager. | |
frame | string | number | Yes | An optional frame from the Texture this Game Object is rendering with. | |
vertices | Array.<number> | Yes | The vertices array. Either | |
uvs | Array.<number> | Yes | The UVs pairs array. | |
indicies | Array.<number> | Yes | Optional vertex indicies array. If you don't have one, pass | |
containsZ | boolean | Yes | false | Does the vertices data include a |
normals | Array.<number> | Yes | Optional vertex normals array. If you don't have one, pass | |
colors | number | Array.<number> | Yes | "0xffffff" | An array of colors, one per vertex, or a single color value applied to all vertices. |
alphas | number | Array.<number> | Yes | 1 | An array of alpha values, one per vertex, or a single alpha value applied to all vertices. |
Type: object
Member of: Phaser.Types.GameObjects.Mesh
Source: src/gameobjects/mesh/typedefs/MeshConfig.js#L1
Since: 3.0.0