/Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/PreviewMesh.h
Get number of materials in the preview mesh (base materials, i.e., not including override material)
int32 GetNumMaterials() const