FDatasmithTextureResize

Choose your operating system:

Windows

macOS

Linux

References

Module

DatasmithImporter

Header

/Engine/Plugins/Enterprise/DatasmithImporter/Source/DatasmithImporter/Public/Utility/DatasmithTextureResize.h

Include

#include "Utility/DatasmithTextureResize.h"

Syntax

class FDatasmithTextureResize

Functions

Name Description

Public function Static

bool

 

GetBestTextureExtension

(
    const TCHAR* Source,
    FString& Extension
)

Returns true if image extension is supported by Unreal Engine or image can be converted to a supported format IMPORTANT: Extension is expected with the starting dot

Public function Static

void

 

Initialize()

Must be called from the main thread before doing any parallel work.

Public function Static

bool

 

IsSupportedTextureExtension

(
    const FString& Extension
)

Returns true if image extension is supported by Unreal Engine IMPORTANT: Extension is expected with the starting dot

Public function Static

EDSTextureUt...

 

ResizeTexture

(
    const TCHAR* Source,
    const TCHAR* Destination,
    EDSResizeTextureMode Mode,
    uint32 MaxSize,
    bool bGenerateNormalMap
)

Resizes texture according to resizing method