UMeshPaintModeSubsystem::ImportVertexColorsToStaticMeshComponent

Imports vertex colors from a Texture to the specified Static Mesh Component according to user-set options