| IToolsContextAssetAPI::SaveGeneratedTexture2D()
|
Module |
|
Header |
/Engine/Source/Runtime/Experimental/InteractiveToolsFramework/Public/ToolContextInterfaces.h |
Include |
#include "ToolContextInterfaces.h" |
virtual bool SaveGeneratedTexture2D
(
UTexture2D * GeneratedTexture,
FString ObjectBaseName,
const UObject * RelativeToAsset
)
Save a generated UTexture2D as an Asset. Assumption is that the texture was generated in code and is in the Transient package.
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) |