Question by
medyahan · May 05, 2021 at 04:19 PM ·
meshverticesvertexmeshfilter
Why vertex positions appear (0.0, 0.0, 0.0) ?
Hello. I print it in the code to see the locations of the vertexes in my hair object. But it is written as the position of all vertexes on the console (0.0, 0.0, 0.0). it shouldn't be like this. What could be the problem? Thanks in advance..
void Start()
{
meshfilter = GetComponent<MeshFilter>();
hairMesh = meshfilter.mesh;
verts = hairMesh.vertices;
foreach (var vert in verts)
{
Debug.Log(vert);
}
}
Comment