It will work if you use CreateScreenshot instead of CreateScreenshotUsingRenderTarget.
Else, the easiest way to do it is to use the camera.outputRenderTarget property to render the scene in a custom RTT.
For eg:
It will work if you use CreateScreenshot instead of CreateScreenshotUsingRenderTarget.
Else, the easiest way to do it is to use the camera.outputRenderTarget property to render the scene in a custom RTT.
For eg: