/Engine/Source/Editor/MeshPaint/Public/MeshPaintHelpers.h
OutNumLODs is set to number of Mesh LODs for the given MeshComponent and returns true, or returns false of given mesh component has no valid LODs
static bool TryGetNumberOfLODs ( const [UMeshComponent](API\Runtime\Engine\Components\UMeshComponent) * MeshComponent, int32 & OutNumLODs )