Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Slate > API/Runtime/Engine/Slate/FSlateTexture2DRHIRef > API/Runtime/Engine/Slate/FSlateTexture2DRHIRef/SetTextureData
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/Slate/SlateTextures.h |
| Include | #include "Slate/SlateTextures.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Slate/SlateTextures.cpp |
void SetTextureData
&40;
FSlateTextureDataPtr NewTextureData,
EPixelFormat InPixelFormat,
ETextureCreateFlags InTexCreateFlags
&41;
Remarks
Sets the bulk data for this texture and the format of the rendering resource Note: Does not reinitialize the resource. Can only be used on the render thread
Parameters
| Name | Description |
|---|---|
| NewTextureData | The new texture data |
| InPixelFormat | The format of the texture data |
| InTexCreateFlags | Flags for creating the rendering resource |