Could you please teach me how to get the triangle count of the Skeletal mesh?

Hello, Guys

I wanna to get the triangles count of assets for verification. Now I can use the FStaticMeshLODResources::GetNumTriangles to get the static mesh triangles. However, I can only access the vertice count of the skeletal mesh by using FSkeletalMeshLODRenderData::GetNumVertices. Could you please tell me how could I access the triangles count of the skeletal mesh?

Thanks

Bests
YL

FSkeletalMeshLODRenderData.MultiSizeIndexContainer.GetIndexBuffer()->Num() / 3

Hey sorry it’s been a while…like a long while - why do you divide by 3?

Because it’s a flat list of vertices, so, to get the triangles, you need to read them by chunks of 3