Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FTextureRenderTarget2DArrayResou- > API/Runtime/Engine/FTextureRenderTarget2DArrayResou-/ReadPixels
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/TextureRenderTarget2DArrayResource.h |
| Include | #include "TextureRenderTarget2DArrayResource.h" |
| Source | /Engine/Source/Runtime/Engine/Private/TextureRenderTarget2DArray.cpp |
bool ReadPixels
&40;
TArray< FColor > & OutImageData,
int32 InDepthSlice,
FIntRect InRect
&41;
Remarks
Copy the texels of a single depth slice of the 2d array into an array. true if the read succeeded.
Parameters
| Name | Description |
|---|---|
| OutImageData | float16 values will be stored in this array. |
| InDepthSlice | which depth slice to read. |
| InRect | Rectangle of texels to copy. |