FDatasmithImporterUtils::DuplicateStaticMesh

Specialization of the duplication of a StaticMesh object specifically optimized for datasmith use case.

Windows
MacOS
Linux

References

Module

DatasmithImporter

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

Syntax

static UStaticMesh * DuplicateStaticMesh
(
    UStaticMesh * SourceStaticMesh,
    UObject * Outer,
    const FName Name,
    bool bIgnoreBulkData
)

Remarks

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.

Returns

the copied StaticMesh or null if it failed for some reason

Parameters

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss