Skip to main content
Version: Phaser v3.88.2

Types.GameObjects.Mesh

MeshConfig

<static> MeshConfig

nametypeoptionaldefaultdescription
keystring | Phaser.Textures.TextureYesThe key, or instance of the Texture this Game Object will use to render with, as stored in the Texture Manager.
framestring | numberYesAn optional frame from the Texture this Game Object is rendering with.
verticesArray.<number>YesThe vertices array. Either xy pairs, or xyz if the containsZ parameter is true.
uvsArray.<number>YesThe UVs pairs array.
indiciesArray.<number>YesOptional vertex indicies array. If you don't have one, pass null or an empty array.
containsZbooleanYesfalseDoes the vertices data include a z component?
normalsArray.<number>YesOptional vertex normals array. If you don't have one, pass null or an empty array.
colorsnumber | Array.<number>Yes"0xffffff"An array of colors, one per vertex, or a single color value applied to all vertices.
alphasnumber | Array.<number>Yes1An 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