IToolsContextAssetAPI::SaveGeneratedTexture2D

Save a generated [UTexture2D](API\Runtime\Engine\Engine\UTexture2D) as an Asset.

Windows
MacOS
Linux

Override Hierarchy

IToolsContextAssetAPI::SaveGeneratedTexture2D()

FModelingModeAssetAPI::SaveGeneratedTexture2D()

References

Module

InteractiveToolsFramework

Header

/Engine/Source/Runtime/Experimental/InteractiveToolsFramework/Public/ToolContextInterfaces.h

Include

#include "ToolContextInterfaces.h"

Syntax

virtual bool SaveGeneratedTexture2D
(
    UTexture2D * GeneratedTexture,
    FString ObjectBaseName,
    const UObject * RelativeToAsset
)

Remarks

Save a generated UTexture2D as an Asset. Assumption is that the texture was generated in code and is in the Transient package.

Parameters

Parameter

Description

GeneratedTexture

Texture2D to save

ObjectBaseName

a base name for the Asset. Unique name will be generated by appending a number, if a name collision occurs.

RelativeToAsset

New texture will be saved at the same path as the UPackage for this UObject, which we assume to be an Asset (eg like a UStaticMesh)

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