I have a skelatal mesh with vertex colors, which works correctly in the material. How can I read the vertex color from c++? I’ve tried this:
USkeletalMesh* Mesh = MeshComponent->SkeletalMesh;
FStaticLODModel& Model = Mesh->GetSourceModel();
TArray<FSoftSkinVertex> Verts;
Model.GetVertices(Verts);
But it returns white for all vertices.
Edit: I’ve also tried
FSkeletalMeshVertexColorBuffer& Colors = Model.ColorVertexBuffer;
But this is also entirely white.