- Home /
Render to RenderTexture and Screen both
I have a screen space-camera canvas which uses a camera, say, Camera A. I want to save the rendering from this camera to a render texture and I also want the rendering on the screen. I've tried couple of solutions from Unity forums but nothing have worked till now. I can always duplicate this canvas and set its camera to a duplicate of Camera A but that is something I'm avoiding to do. Also, in another situation I have a third party script which needs to be passed a camera object and the rendering will happen on that camera. Again, I want the rendering of this camera to a render texture and on screen as well. How do I achieve this ? Is there really a way to achieve this ?
Answer by Smaika · Dec 20, 2017 at 01:03 AM
Check reissgrant answer in this question. I'm not sure if it would work but you can try putting the code reissgrant gave in your update function.
I have checked that answer, it looks more like a solution on saving the render texture into a Texture object and then using it for later. In my case, I want the rendering only on a render texture because I send the pointer of this render texture to some other script
Your answer
Follow this Question
Related Questions
UI Mask doesnt work with Screen Space - Camera canvas? 2 Answers
Missing Camera for Canvas (Screen Space - Overlay)? 0 Answers
Strange Canvas behaviour at Screen Space - Camera mode? 0 Answers
Screen Space - Camera to Screen Space - Overlay switch issue 0 Answers
Help with Raycast on Render Texture 0 Answers