Navigation
API > API/Runtime > API/Runtime/TextureUtilitiesCommon
Description
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
NOTE: may open a dialog box to ask user if large non-VT import is wanted!
| Name | UE::TextureUtilitiesCommon::IsImportResolutionValid |
| Type | function |
| Header File | /Engine/Source/Runtime/TextureUtilitiesCommon/Public/TextureImportUtils.h |
| Include Path | #include "TextureImportUtils.h" |
| Source | /Engine/Source/Runtime/TextureUtilitiesCommon/Private/TextureImportUtils.cpp |
namespace UE
{
namespace TextureUtilitiesCommon
{
bool UE::TextureUtilitiesCommon::IsImportResolutionValid
(
int64 Width,
int64 Height,
bool bAllowNonPowerOfTwo,
FText * OutErrorMessage
)
}
}
bool true if the given height/width represent a supported texture resolution, false if not
Parameters
| Name | Remarks |
|---|---|
| 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 |