- Home /
Split screen view help
I am trying to get something like this effect using two cameras.
I tried screwing around with the viewports, but they just end up rendering the same scene twice. Is there a way to get an effect where the two camera's views can be split and summed up to form one whole picture? I have no idea what this effect is called.
Answer by amane01 · May 05 at 11:23 PM
Hey dude. Figured it out how to do it for me.
Copy the second script from here - https://docs.unity3d.com/ScriptReference/Camera-projectionMatrix.html In the code you may want to edit this line in LateUpdate()- Camera cam = Camera.main;
Remove it and add script to both cameras. Then add public Camera cam
and then assign your top and bottom camera over there. Then you probably want to play with the top and bottom values.
You'll need both cameras in split screen view (viewport rect) before you do this.
Your answer
Follow this Question
Related Questions
Crosshair Not Parallel To camera 1 Answer
How do I clear the image outside of a camera's viewport? 0 Answers
align the buttom of the viewport to the buttom of an object? 1 Answer
Camera picture stretching when width changed in script? 1 Answer
Why Is My Orthographic Camera Not Rendering at the Full Resolution? 1 Answer