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?