# Cast to TexturerenderTarget2D failed

**URL:** <https://forums.unrealengine.com/t/cast-to-texturerendertarget2d-failed/746937>\
**Category:** Asset Creation\
**Tags:** unreal-engine, question\
**Created:** [January 11, 2023, 10:25am UTC](https://forums.unrealengine.com/t/cast-to-texturerendertarget2d-failed/746937 "2023-01-11T10:25:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![YosomiChann](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/yosomichann/32/559914_2.png) [@YosomiChann](https://forums.unrealengine.com/u/YosomiChann)\
**Post date:** [January 11, 2023, 10:25am UTC](https://forums.unrealengine.com/t/cast-to-texturerendertarget2d-failed/746937/1 "2023-01-11T10:25:39Z")

</div>

Hi all，Because I wanna use ‘read render target Pixel’ function on a texture2D object, I have to get a texture render target. I tried ‘cast to TextureRenderTarget2D’ from ‘TextureParametervalue‘ or ’Texture2D‘ but both failed.  
Could I know how to read a Normalmap, or other Texture2D objects’ pixel?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/d/f/0dff9708a9c4e7f058a5d9f07bf61fe90873a55b.png)

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [January 11, 2023, 1:45pm UTC](https://forums.unrealengine.com/t/cast-to-texturerendertarget2d-failed/746937/2 "2023-01-11T13:45:22Z")

</div>

Not sure if it’s the most optimal way, but it works.

 ![texColor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/1/e/d1e20f7f0d8387b224f75ea30ac987b47d9357ba.png)

---

<div class="post-metadata">

**Author:** ![YosomiChann](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/yosomichann/32/559914_2.png) [@YosomiChann](https://forums.unrealengine.com/u/YosomiChann)\
**Post date:** [January 12, 2023, 3:21am UTC](https://forums.unrealengine.com/t/cast-to-texturerendertarget2d-failed/746937/3 "2023-01-12T03:21:40Z")

</div>

Thank you, it works

---

<div class="post-metadata">

**Author:** ![ShadowBr0kerz](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/shadowbr0kerz/32/1201558_2.png) [@ShadowBr0kerz](https://forums.unrealengine.com/u/ShadowBr0kerz)\
**Post date:** [October 15, 2026, 10:05am UTC](https://forums.unrealengine.com/t/cast-to-texturerendertarget2d-failed/746937/4 "2026-10-15T10:05:02Z")

</div>

that cast fails because a plain texture is not a target, so copy it into a render target first with a draw material, then read from that. Async Render Target Reader, a render target readback plugin, then lets blueprint pull those pixels async with no stall: [Async Render Target Reader — Non-Blocking GPU Pixel Readback for Blueprints | Fab](https://www.fab.com/listings/1861543a-feda-4961-8b6c-6b50c6daaeef)
