Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Engine > UTexture2DDynamic
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Engine/Texture2DDynamic.h |
Include | #include "Engine/Texture2DDynamic.h" |
Source | /Engine/Source/Runtime/Engine/Private/Texture2DDynamic.cpp |
void Init
&40;
int32 InSizeX,
int32 InSizeY,
EPixelFormat InFormat,
bool InIsResolveTarget
&41;
Remarks
Initializes the texture with 1 mip-level and creates the render resource.
Parameters
Name | Description |
---|---|
InSizeX | Width of the texture, in texels |
InSizeY | Height of the texture, in texels |
InFormat | Format of the texture, defaults to PF_B8G8R8A8 |
InIsResolveTarget | Whether the texture can be used as a resolve target |