Getting a UTexture2D from a SceneCapture2D

I have these two UProperties:

UTextureRenderTarget2D* renderTarget;
ASceneCapture2D* captureCamera;

And am attempting to grab a texture from the render target:

captureCamera->GetCaptureComponent2D()->UpdateContent();
UTexture2D* texture = renderTarget->ConstructTexture2D(actor, "", EObjectFlags::RF_NoFlags);

However, texture is blank. I am certain that the camera is in the right place–the problem is the code used to retrieve the texture. What is the correct code to use?

i have the same question,is blank

I use ConstructTexture2D get a texture2D,but it’s black,how to get the right texture2D