How to get texture pixels using UTextureRenderTarget2D class?

If you only want to access pixels from
RenderTarget, just use this part of
the code and an index formula.

I tried to use it but how work with x and y for array data? and PixelColor not array - it’s struct of byte rgba