UKismetRenderingLibrary::ReadRenderTargetRawUVArea
#include "Kismet/KismetRenderingLibrary.h"
Access: public
Specifiers: staticUFUNCTIONBlueprintCallable
Description
Reads a rectangular region of a render target as raw, unconverted linear values, with the rectangle expressed in UV [0,1]x[0,1] space rather than pixel coordinates.
Caveats & Gotchas
- • Incredibly inefficient and slow — same GPU readback cost class as the other raw-read functions; do not call per-frame.
- • The Area is converted to integer pixel bounds internally, so very small UV rectangles on low-resolution render targets can collapse to a single pixel or an empty result.
- • Unlike ReadRenderTargetRawPixelArea, Area.Min/Area.Max are UV coordinates, not pixel indices — mixing the two up silently produces the wrong region.
Signature
static TArray<FLinearColor> ReadRenderTargetRawUVArea(UObject* WorldContextObject, UTextureRenderTarget2D* TextureRenderTarget, FBox2D Area, bool bNormalize = true) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| WorldContextObject | UObject* | World context used to resolve the current world. | — |
| TextureRenderTarget | UTextureRenderTarget2D* | The render target to read from. | — |
| Area | FBox2D | UV-space rectangle, with Min/Max in [0,1]x[0,1], to read. | — |
| bNormalize | bool | Whether to normalize 8-bit formats into the [0,1] range. | true |
Return Type
TArray<FLinearColor> Example
Read a UV-space region C++
FBox2D Region(FVector2D(0.25f, 0.25f), FVector2D(0.75f, 0.75f));
TArray<FLinearColor> Samples = UKismetRenderingLibrary::ReadRenderTargetRawUVArea(this, NoiseRT, Region); See Also
Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?