Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UKismetRenderingLibrary
Description
Incredibly inefficient and slow operation! Reads entire render target as sRGB color and returns a linear array of sRGB colors. LDR render targets are assumed to be in sRGB space. HDR ones are assumed to be in linear space. Result whether the operation succeeded. If successful, OutSamples will an entry per pixel, where each is 8-bit per channel [0,255] BGRA in sRGB space.
| Name | ReadRenderTarget |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Kismet/KismetRenderingLibrary.h |
| Include Path | #include "Kismet/KismetRenderingLibrary.h" |
| Source | /Engine/Source/Runtime/Engine/Private/KismetRenderingLibrary.cpp |
UFUNCTION (BlueprintCallable, Category="Rendering",
Meta=(Keywords="ReadRenderTarget", WorldContext="WorldContextObject"))
static bool ReadRenderTarget
(
UObject * WorldContextObject,
UTextureRenderTarget2D * TextureRenderTarget,
TArray < FColor > & OutSamples,
bool bNormalize
)