Split Screen Pro is the easiest way to split screen between two players or targets.
Unity Free Source Code
Although this Unity Asset is typically a paid asset, it is currently available for free download. It’s important to note that this offer is intended strictly for educational purposes or for testing the product before making a purchase, and it should not be utilized for commercial activities
UNITY ASSET STORE LİNK: LINK
The Built-in Render Pipeline is Unity’s default render pipeline. It is a general-purpose render pipeline that has limited options for customization. The Universal Render Pipeline (URP) is a Scriptable Render Pipeline that is quick and easy to customize, and lets you create optimized graphics across a wide range of platforms. The High Definition Render Pipeline (HDRP) is a Scriptable Render Pipeline that lets you create cutting-edge, high-fidelity graphics on high-end platforms.
Split Screen Pro is a camera composing system that enables automatic screen split between two targets or players. This asset can automatically detect when the two targets are far from each other and show a dynamic split line which separates and adapts the view in two halves, one per each target or player.
The asset includes many options that allows you to configure both the behaviour of the split and the appearance producing an effect like those shown in AAA games.
DOWNLOAD LINK: LINK