Hi, I am making a camera-based game (think pkmon snap). I have one main camera2D pointing at the entire viewport, and on a buttonpress, the active camera switches to another Camera2D that is zoomed in (to simulate the player's camera scenefinder (zoomed in). This 2nd camera can be panned using arrow keys.
I currently have it working by displaying both Camera2D to the main Viewport. But I want to change it such that I can display the zoomed in camera in a subviewport. How can i go about doing it.
Imagine that the zoomed in version is to be displayed within the bounds of a "Camera" sprite, in the centre of the main viewport