Navigation
Unreal Engine C++ API Reference > Editor > UnrealEd > Factories > UTextureFactory
References
Module | UnrealEd |
Header | /Engine/Source/Editor/UnrealEd/Classes/Factories/TextureFactory.h |
Include | #include "Factories/TextureFactory.h" |
Source | /Engine/Source/Editor/UnrealEd/Private/Factories/EditorFactories.cpp |
static bool IsImportResolutionValid
&40;
int64 Width,
int64 Height,
bool bAllowNonPowerOfTwo,
FFeedbackContext &42; Warn
&41;
Remarks
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 bool true if the given height/width represent a supported texture resolution, false if not
Parameters
Name | Description |
---|---|
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 |
Warn | Where to send warnings/errors |