Navigation
API > API/Plugins > API/Plugins/DatasmithImporter > API/Plugins/DatasmithImporter/FDatasmithImporterUtils
Description
Specialization of the duplication of a StaticMesh object specifically optimized for datasmith use case. This operation invalidate the duplicated SourceStaticMesh and mark it as PendingKill, unless bIgnoreBulkData is True.
| Name | DuplicateStaticMesh |
| Type | function |
| Header File | /Engine/Plugins/Enterprise/DatasmithImporter/Source/DatasmithImporter/Public/Utility/DatasmithImporterUtils.h |
| Include Path | #include "Utility/DatasmithImporterUtils.h" |
| Source | /Engine/Plugins/Enterprise/DatasmithImporter/Source/DatasmithImporter/Private/Utility/DatasmithImporterUtils.cpp |
static UStaticMesh * DuplicateStaticMesh
(
UStaticMesh * SourceStaticMesh,
UObject * Outer,
const FName Name,
bool bIgnoreBulkData
)
the copied StaticMesh or null if it failed for some reason
Parameters
| Name | Remarks |
|---|---|
| SourceStaticMesh | the UStaticMesh being copied |
| Outer | the outer to use for the object |
| Name | the optional name of the object |
| bIgnoreBulkData | if True, the SourceStaticMesh's SourceModels BulkDatas won't be copied and SourceStaticMesh will stay valid after the operation. |