Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Plugins/Enterprise/DatasmithImporter/Source/DatasmithImporter/Public/DatasmithImporter.h |
Include |
#include "DatasmithImporter.h" |
Source |
/Engine/Plugins/Enterprise/DatasmithImporter/Source/DatasmithImporter/Private/DatasmithImporter.cpp |
static UObject * FinalizeMaterial
(
UObject * SourceMaterial,
const TCHAR * MaterialFolderPath,
const TCHAR * TransientFolderPath,
const TCHAR * RootFolderPath,
UMaterialInterface * ExistingMaterial,
TMap< UObject *, UObject * > * ReferencesToRemap,
FMaterialUpdateContext * MaterialUpdateContext
)
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
Parameter |
Description |
---|---|
SourceMaterial |
The material to finalize. |
MaterialFolderPath |
The path where to put the final material, if we don't have an ExistingMaterial |
MaterialFolderPath |
The transient path of the imported scene, used to finalize parent materials. |
MaterialFolderPath |
The root folder where we want to import the scene, used to finalize parent materials. |
ExistingMaterial |
An optional existing material on which we will finalize over. |
ReferencesToRemap |
A map of migrated objects. If SourceMaterial refers to any key objects, those references will be replaced by the corresponding map value. |
MaterialUpdateContext |
An optional material update context to batch updates and improve performance. |