Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FTextureRenderTargetCubeResource > API/Runtime/Engine/FTextureRenderTargetCubeResource/ReadPixels
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/TextureResource.h |
| Include | #include "TextureResource.h" |
| Source | /Engine/Source/Runtime/Engine/Private/TextureRenderTargetCube.cpp |
bool ReadPixels
&40;
TArray< FColor > & OutImageData,
FReadSurfaceDataFlags InFlags,
FIntRect InRect
&41;
Remarks
Copy the texels of a single face of the cube into an array. Copy the texels of a single face of a cube texture into an array. True if the read succeeded.
Parameters
| Name | Description |
|---|---|
| OutImageData | float16 values will be stored in this array. |
| InFlags | read flags. ensure cubeface member has been set. |
| InRect | Rectangle of texels to copy. |
| OutImageData | RGBA8 values will be stored in this array. |
| InFlags | read flags. ensure cubeface member has been set. |
| InRect | Rectangle of texels to copy. Empty InRect (0,0,0,0) defaults to the whole surface size. |