Unity gets the camera rendering texture

The code gets the image from the virtual camera and displays it
RenderTexture rt = new RenderTexture(1500, 1125, 16);
camera.targetTexture = rt
rawImage.texture = rt

Guess you like

Origin blog.csdn.net/weixin_43780907/article/details/123072421