FDatasmithImporter::FinalizeStaticMesh

Copy a static mesh from its transient package into its final public package and builds it.

Windows
MacOS
Linux

References

Module

DatasmithImporter

Header

/Engine/Plugins/Enterprise/DatasmithImporter/Source/DatasmithImporter/Public/DatasmithImporter.h

Include

#include "DatasmithImporter.h"

Source

/Engine/Plugins/Enterprise/DatasmithImporter/Source/DatasmithImporter/Private/DatasmithImporter.cpp

Syntax

static UStaticMesh * FinalizeStaticMesh
(
    UStaticMesh * SourceStaticMesh,
    const TCHAR * StaticMeshesFolderPath,
    UStaticMesh * ExistingStaticMesh,
    TMap< UObject *, UObject * > * ReferencesToRemap,
    bool bBuild
)

Remarks

Copy a static mesh from its transient package into its final public package and builds it.

Returns

The resulting static mesh

Parameters

Parameter

Description

SourceStaticMesh

The static mesh to finalize.

StaticMeshesFolderPath

The path where to put the final static mesh, if we don't have an ExistingStaticMesh

ExistingStaticMesh

An optional existing static mesh on which we will finalize over.

ReferencesToRemap

A map of migrated objects. If SourceStaticMesh refers to any key objects, those references will be replaced by the corresponding map value.

bBuild

Specify if the static mesh building should be performed.

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