FDatasmithImporter::FinalizeTexture

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

Choose your operating system:

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 UTexture * FinalizeTexture
(
    UTexture * SourceTexture,
    const TCHAR * TexturesFolderPath,
    UTexture * ExistingTexture,
    TMap< UObject *, UObject * > * ReferencesToRemap
)

Remarks

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

Returns

The resulting texture

Parameters

Parameter

Description

SourceTexture

The texture to finalize.

TexturesFolderPath

The path where to put the final texture, if we don't have an ExistingTexture

ExistingTexture

An optional existing texture on which we will finalize over.

ReferencesToRemap

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