I’ve been making a script that takes two cameras and draws them in a split screen fashion. They are both focused on a seperate object in the world ( parented under them ), it looks like this in game view:
Then, when I prompt it to, it will slide the two screen rectangles so that they align with a third camera - a top down view, which looks like this:
Problem is when the two rectangles meet the edge of the screen, they shrink. camera.rect.x is clamped to 0 or screen.width, same with y.
This distorts the content within the rectangles, making the objects smaller and centered in the rectangles as shown here