Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/UTextureAssetActionsBlueprintFns
Description
Resizes the texture Source to power of two, if it wasn't already.
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 | ResizeTextureSourceToPowerOfTwo |
| 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 ResizeTextureSourceToPowerOfTwo
(
UTexture * Texture,
int FilterThresholdValue
)