/Engine/Plugins/Enterprise/DatasmithImporter/Source/DatasmithImporter/Public/DatasmithImporter.h
Copy a material from its transient package into its final public package and builds it. Also finalizes the parent material for instances when it's under the same path as the SourceMaterial.
The resulting material
static [UObject](API\Runtime\CoreUObject\UObject\UObject) * FinalizeMaterial ( [UObject](API\Runtime\CoreUObject\UObject\UObject) * SourceMaterial, const TCHAR * MaterialFolderPath, const TCHAR * TransientFolderPath, const TCHAR * RootFolderPath, [UMaterialInterface](API\Runtime\Engine\Materials\UMaterialInterface) * ExistingMaterial, [TMap](API\Runtime\Core\Containers\TMap)< [UObject](API\Runtime\CoreUObject\UObject\UObject) *, [UObject](API\Runtime\CoreUObject\UObject\UObject) * > * ReferencesToRemap, [FMaterialUpdateContext](API\Runtime\Engine\FMaterialUpdateContext) * MaterialUpdateContext )