Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UTexture2D
Description
Creates and initializes a new Texture2D with the requested settings. The texture will have 1 mip level of the given size, optionally filled with the provided data.
| Name | CreateTransient |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/Texture2D.h |
| Include Path | #include "Engine/Texture2D.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Texture2D.cpp |
static UTexture2D * CreateTransient
(
int32 InSizeX,
int32 InSizeY,
EPixelFormat InFormat,
const FName InName,
TConstArrayView64< uint8 > InImageData
)