![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
Classes | |
| class | TPNGDataFill |
Variables | |
| constexpr int32 | UDIM_Max_X = 9 |
| constexpr int32 | UDIM_Max_Y = 90 |
| constexpr int32 | UDIM_Min_Index = 1001 |
| constexpr int32 | UDIM_Max_Index = UDIM_Min_Index + UDIM_Max_X + UDIM_Max_Y * 10 |
| constexpr const TCHAR * | DefaultUdimRegexPattern = TEXT(R"((.+?)[._](\d{4})$)") |
| template TEXTUREUTILITIESCOMMON_API bool UE::TextureUtilitiesCommon::AutoDetectAndChangeGrayScale | ( | FImage & | Image | ) |
| template TEXTUREUTILITIESCOMMON_API bool UE::TextureUtilitiesCommon::AutoDetectAndChangeGrayScale | ( | FMipMapImage & | Image | ) |
| bool UE::TextureUtilitiesCommon::AutoDetectAndChangeGrayScale | ( | ImageClassType & | Image | ) |
Detect the existence of gray scale image in some formats and convert those to a gray scale equivalent image
| TEXTUREUTILITIESCOMMON_API bool UE::TextureUtilitiesCommon::AutoDetectAndChangeGrayScale | ( | ImageClassType & | Image | ) |
Detect the existence of gray scale image in some formats and convert those to a gray scale equivalent image
| TEXTUREUTILITIESCOMMON_API void UE::TextureUtilitiesCommon::ExtractUDIMCoordinates | ( | int32 | UDIMIndex, |
| int32 & | OutBlockX, | ||
| int32 & | OutBlockY | ||
| ) |
| TEXTUREUTILITIESCOMMON_API void UE::TextureUtilitiesCommon::FillZeroAlphaPNGData | ( | int32 | SizeX, |
| int32 | SizeY, | ||
| ETextureSourceFormat | SourceFormat, | ||
| uint8 * | SourceData, | ||
| bool | bDoOnComplexAlphaNotJustBinaryTransparency | ||
| ) |
For PNG texture importing, this ensures that any pixels with an alpha value of zero have an RGB assigned to them from a neighboring pixel which has non-zero alpha. This is needed as PNG exporters tend to turn pixels that are RGBA = (x,x,x,0) to (1,1,1,0) and this produces artifacts when drawing the texture with bilinear filtering.
| TextureSource | - The source texture |
| SourceData | - The source texture data |
| TEXTUREUTILITIESCOMMON_API bool UE::TextureUtilitiesCommon::GetDefaultSRGB | ( | TextureCompressionSettings | TC, |
| ETextureSourceFormat | ImportImageFormat, | ||
| bool | ImportImageSRGB | ||
| ) |
| TEXTUREUTILITIESCOMMON_API ETextureImportPNGInfill UE::TextureUtilitiesCommon::GetPNGInfillSetting | ( | ) |
Resolves PNG infill setting using, in order of preference, per-project user settings, project settings, and legacy config settings.
| TEXTUREUTILITIESCOMMON_API TMap< int32, FString > UE::TextureUtilitiesCommon::GetUDIMBlocksFromSourceFile | ( | const FString & | File, |
| const FString & | UdimRegexPattern, | ||
| FString * | OutFilenameWithoutUdimPatternAndExtension = nullptr |
||
| ) |
Parse the file for the UDIM pattern If the pattern is found search in the folder of the file for the others blocks
| TEXTUREUTILITIESCOMMON_API int32 UE::TextureUtilitiesCommon::GetUDIMIndex | ( | int32 | BlockX, |
| int32 | BlockY | ||
| ) |
| bool UE::TextureUtilitiesCommon::IsImportResolutionValid | ( | int64 | Width, |
| int64 | Height, | ||
| bool | bAllowNonPowerOfTwo, | ||
| FText * | OutErrorMessage | ||
| ) |
Tests if the given height and width specify a supported texture resolution to import; Can optionally check if the height/width are powers of two
| Width | The width of an imported texture whose validity should be checked |
| Height | The height of an imported texture whose validity should be checked |
| bAllowNonPowerOfTwo | Whether or not non-power-of-two textures are allowed |
| OutErrorMessage | Optional output for an error message |
NOTE: may open a dialog box to ask user if large non-VT import is wanted!
| TEXTUREUTILITIESCOMMON_API uint32 UE::TextureUtilitiesCommon::ParseUDIMName | ( | const FString & | Name, |
| const FString & | UdimRegexPattern, | ||
| FString & | OutPrefixName, | ||
| FString & | OutPostfixName | ||
| ) |
|
constexpr |
|
constexpr |