I have this simple script. I tried to put it on simple mesh and cubes but mesh.colors is always zero.
What am I missing here?
Mesh mesh = GetComponent<MeshFilter>().mesh;
Debug.Log(mesh.colors32.Length);
This is the shader i am using
Shader "Custom/Vertex Colored" {
Properties{
}
SubShader{
Pass{
ColorMaterial AmbientAndDiffuse
}
}
}