In the previous recipe, we rendered the output from our minimap Camera to a Render Texture, and displayed the contents of that image in a UI Raw Image. Another example of when we may wish to capture and output the view of a Camera at runtime is to simulate an in-game surveillance Camera, such as a Closed-Circuit Television (CCTV) system. In this recipe, we will make use of a Render Texture to create an in-game surveillance camera that transmits its video to a 3D monitor elsewhere in the Scene:
Creating an in-game surveillance Camera
Getting ready
This recipe adds to the scene created in the first recipe of this chapter, so make a copy of that project folder and do your work for this recipe with that copy.
For this recipe...