- Home /
Change cameras visible area in camera viewport
I am making a game with a dynamic camera, which switches into a splitscreen (with 2 players), when the players are too far away from each other. In the moment of the split I want to copy the main camera (so that the players don't actually have a hard cut and teleporting of the player characters) and let both cameras slowly drive to each player.
The problem is, that in the moment of the cut, I want to have the one camera only show the right half of its view to be shown in the right Viewport Rect and as the camera slowly fades over to the player, the visible area of the camera changes (For the right Splitscreen: At the start ist shows the right half of its view and at the end, when the cameras is on the same x value as the player, the camera shows the middle of its view, like it nomrally would)
How can I actually tell the camera what parts of its own view it displays in its viewport?