Advanced
Optional
indicesArray of indices defining triangles. Each triangle is 3 indices into the vertices array.
The texture to use
Optional
topologyHow vertices are connected to form triangles.
Optional
uvsArray of UV coordinates for texture mapping. Each UV is 2 floats - u, v
Optional
verticesArray of vertex positions as x,y pairs. Each vertex is 2 floats - x, y
Options for creating a SimpleMesh instance. Defines the texture, geometry data, and rendering topology for a basic mesh with direct vertex manipulation capabilities.
Example