Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FImageUtils
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/ImageUtils.h |
| Include | #include "ImageUtils.h" |
| Source | /Engine/Source/Runtime/Engine/Private/ImageUtils.cpp |
static UTexture * CreateTexture
(
ETextureClass TextureClass,
const FImageView & Image,
UObject * Outer,
const FString & Name,
EObjectFlags Flags,
bool DoPostEditChange
)
Remarks
Creates a texture of any type from an Image This is the modern preferred way to create a texture.
If you need to change the default settings, then use DoPostEditChange = false, and call PostEditChange() yourself after setting all properties. Typically you may want to set LODGroup and CompressionSettings.
this fills the TextureSource , and will then Build a Platform texture from that can be used WITH_EDITOR only