Mesh class, How do get the color of each vertex?

Just how you store verticies into an array…

Vector3 Verticies = mesh.verticies;

How can I store the colors into an array? because doing it this way…

Color32[] Colors = mesh.colors;
print(Colors.length);// it returns 0

What am I doing wrong here, How can I get the color of each vertex stored into an array?

What you’re already doing should be working perfectly, which means that the mesh that you’re trying to get colors from doesn’t have a colors array. Make sure to use a mesh with a colors array and a shader that displays vertex colors, and what you’re doing will work!