Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/UTextureAssetActionsBlueprintFns
Description
Compresses the texture source with JPEG. This makes the uasset smaller on disk, but lower quality and slower to access.
JPEG does not make the runtime game asset smaller on disk, only the source uasset. JPEG can only be used on simple 2d textures.
Only acts on texture sources that are 8 bit. You may wish to use ConvertTo8bitTextureSource before this, optionally.
Only acts on textures larger than FilterThresholdValue. Use FilterThresholdValue = 0 to disable filtering by size.
Returns Success if the action was done, returns AlreadyDone if the action did not need to be done because texture already met the goal. Returns Error if the operation could not be applied because the texture is not a suitable type, or an unexpected error was encountered during processing.
| Name | CompressTextureSourceWithJPEG |
| Type | function |
| Header File | /Engine/Source/Editor/UnrealEd/Public/TextureAssetActionsBP.h |
| Include Path | #include "TextureAssetActionsBP.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/TextureAssetActionsBP.cpp |
UFUNCTION (BlueprintCallable, Category="TextureAssetActions")
static ETextureAssetActionsBlueprintReturn CompressTextureSourceWithJPEG
(
UTexture * Texture,
int FilterThresholdValue
)