Adaptive Split Screen

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

  1. SplitScreenEffect - the main MonoBehaviour component that applies split screen effect on camera.
  2. Modifier - custom MonoBehaviour components for modifying logic of SplitScreenEffect.
  3. SplitScreen4, SplitScreen3 and SplitScreen2 - structs for generating split screen effect.
  4. 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.