Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UTexture2D
Description
Creates a new texture2d from the first slice of the given image. If the image format isn't supported a texture isn't created.
| Name | CreateTransientFromImage |
| 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 * CreateTransientFromImage
(
const FImage * InImage,
const FName InName
)