Module |
|
Header |
/Engine/Plugins/Enterprise/DatasmithImporter/Source/DatasmithImporter/Public/Utility/DatasmithImporterUtils.h |
Include |
#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
)
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.
the copied StaticMesh or null if it failed for some reason
Parameter |
Description |
---|---|
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. |