Show camera view on sprite

Hello, first of all sorry for my english.

I am trying to create a sprite with a specific form (which I will animate with other sprites) that is transparent and shows the view of a camera.

Is it possible? If so, can you explain me how?

Thanks.

You’ll need a second Camera that has a target Render Texture set. You can create a RenderTexture in your project files using the Create menu. Everything the camera sees will be drawn to the texture. Then you can use that texture as the input for a material.

You could alternatively use a Canvas set to WorldSpace, with a child object using a RawImage component to display the RenderTexture for an out-of-the-box solution.

4 Likes