Download

How to Read a RenderTarget2D's Data through Grid2DCollection

I created a UTextureRenderTarget2D object by code and passed it through Niagara’s API SetVariableTextureRenderTarget to the FX. I want to read the data through Grid2dCollection. I binded the rendertarget to grid like below.
图片

and I read data

But, something maybe wrong, I always get zero result, I just searched google and the Epic’s content samples, still can not find how to read the Render Target in Niagara, but some teaches how to write.

Anyone knows? Many thanks in advance

I just debugged the source codes of the engine.


it seems only 3 types(float, half float and byte) are support?
My RT’s format is RGB32F. So when it passed into, it will be recreated and cleared for the codes below:

I’m not sure if it is the problem. I will try again