Format
typescript
Mesh.colorsclass: Mesh
Description
An array of vertex colors for the mesh.
Color information can be used to control the rendering effects of the mesh, such as vertex coloring, lighting, etc.
Parameters
| param_name | type | description |
|---|
Return
| type | description |
|---|---|
Color[] | The vertex colors. |
Code Example
typescript
let mesh = Resources.Load<Mesh>(Mesh, "meshId");
mesh.colors;