- Home /
How to do a 4P split screen internet multiplayer
I am new to Unity and I am trying to build a competitive multiplayer tower building game. I am currently using Unity's network manager for the multiplayer, which means I have created a generic player prefab (that is automatically spawned when a new client connects) but I can't seem to figure out the camera.
I want to have a number of split screens (the number depends on number of players in the game), each following the height of the respective players towers. The effect that I want is something like this:
Can someone please give me a quick pointer as to how I can build something like this? (Maybe the name of some unity's inbuilt function which I can google and find out more about).
Answer by hexagonius · Apr 08, 2017 at 05:04 PM
You just need to change the cameras view rect:
https://docs.unity3d.com/ScriptReference/Camera-rect.html
if you set width to .25 for 4 cameras and x to 0 + .25 * currentCamera, you'd end up with those 4 next to each other.
Just put 2 into the scene and play with the values to see the effect
Answer by maxoja · Sep 17, 2018 at 10:29 PM
@iloveneh I have made this tutorial to clarify how to do that in short time. Check out if you like watching tutorials. https://goo.gl/hnrQmn
Your answer
Follow this Question
Related Questions
Change cameras visible area in camera viewport 0 Answers
How do I get my camera to rotate around the y=0 coordinate it's looking at? 0 Answers
Vuforia camera frustum out of view after image target is lost 0 Answers
Camera movement stuttery with interpolate on,Camera movement with interpolate on? 0 Answers