Yes, you can do it easily in unity. But first, you need to understand Camera, RenderTexture, Canvas, and RawImage in Unity.
Below is step by step procedure to achieve the result you wanted.
- Create a New Scene
- Add New Camera using Right Click > Camera
- Change Camera's Projection to "Orthographic" (You can skip this step, or set according to your requirement)
- Select the "Main Camera" which is by default available in New Scene.
- Change Camera's Clear Flags to Solid Color and change background to "Black" and change projection to "Orthographic"
- Create RawImage by Right Click > UI > RawImage
- Now set RawImage Position to the are you want to see ex."Working View"
- Go to project > Create > New RenderTexture
- Select the RawImage and Drag the RenderTexture you created to RawImage's Texture property.
- Drag that RenderTexture into the New Camera's "TargetTexture". (Camera we created manually is New Camera)
I hope this helps!
What actually happens here is we transfer Whatever Render into the new camera to "RenderTexture" and make it render back to the scene using RawImage.