This is a paid asset, but now you can download Adaptive Split Screen for FREE, but please remember this package is provided only for learning purposes or to be able to test before buying the product, NOT FOR COMMERCIAL PURPOSES.
Detail this asset from Unity Store: Original Link
Adaptive Split Screen v1.0.0
Split screen solution for co-op style games.
This package contains fast lightweight solution for split screen It is developed with DOTS in mind, as result it takes advantage of Unity’s latest technology stack like SIMD mathematics, Jobs and Burst compiler.
It is recommended for co-op style games. Especially if world is not small and players can be far away from each other.
This is novel solution of split screen based on voronoi diagrams. One can think of it as extension of traditional dynamic split screen for up to 4 players.
Key Behaviours
Fairness – option for each player to have similar screen region area.
Centered – option for each player to be centered in their screen region.
Direction Indicated – each split indicates direction to other player.
Fusible – players screen regions can be merged once they are close enough.
The package is designed to be easily customizable and approchable from artist’s to developer’s background.
There are 4 layers of API
SplitScreenEffect – the main MonoBehaviour component that applies split screen effect on camera.
Modifier – custom MonoBehaviour components for modifying logic of SplitScreenEffect.
SplitScreen4, SplitScreen3 and SplitScreen2 – structs for generating split screen effect.
VoronoiBuilder, VoronoiDiagram – structs for generating voronoi diagrams from sites.
Support Discord
Tested On I Borrow, Tanks
Documentation linked in discord channel
Dependencies
Tested with Unity 2019.4
Package com.unity.mathematics
Package com.unity.collections
Package com.unity.burst
Note: 4 player fairness comes with the cost of space continuity. Which will be improved in the future.
Documentation
5 Samples
SplitScreen API