AllowNonPowerOfTwoTextures
AllowNonPowerOfTwoTextures
#Overview
name: AllowNonPowerOfTwoTextures
The value of this variable can be defined or overridden in .ini config files. 1
.ini config file referencing this setting variable.
It is referenced in 1
C++ source file.
#Summary
#Setting Variables
#References In INI files
Location: <Workspace>/Engine/Config/BaseEditor.ini:258, section: [TextureImporter]
- INI Section:
TextureImporter
- Raw value:
True
- Is Array:
False
#References in C++ code
#Callsites
This variable is referenced in the following C++ source code:
#Loc: <Workspace>/Engine/Source/Editor/UnrealEd/Private/Factories/EditorFactories.cpp:3577
Scope (from outer to inner):
file
function UTexture* UTextureFactory::ImportTexture
Source code excerpt:
bool bAllowNonPowerOfTwo = false;
GConfig->GetBool( TEXT("TextureImporter"), TEXT("AllowNonPowerOfTwoTextures"), bAllowNonPowerOfTwo, GEditorIni );
// Validate it.
const int64 Length = BufferEnd - Buffer;
// We want to allow certain texture types to potentially return the compressed data rather than raw uncompressed
EImageImportFlags ImportFlags = EImageImportFlags::AllowReturnOfCompressedData;