Skip to content

Format

typescript
Mesh.colors

class: 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_nametypedescription

Return

typedescription
Color[]The vertex colors.

Code Example

typescript
let mesh = Resources.Load<Mesh>(Mesh, "meshId");
mesh.colors;