In this lesson on how to create Among Us in Unity, I will show you how to get the same lighting effect as what we created in the last lesson only this time we will use the new 2D lights from the Universal Render Pipeline. Using this option is good because it is much more precise and optimized. The downside to using this system is that it is still listed as Experimental and there is no real way that I know of to mask the players in the shadows without turning the shadow intensity up all the way.
The first thing that we will do in our project is to reset the hierarchy to the way it was before the last video. We will then need to implement the Universal Render Pipeline. first, install the package from the package manager. Then you will need to create a Pipeline Asset and a 2D renderer. After which you will need to apply the 2D renderer to the pipeline asset and finally you will need to apply the pipeline to the graphics setting in the project settings.
Next, we can add a 2D point light to our scene which I have added our player prefab. the Final thing that you will need to do is add Shadow Caster scripts to our wall objects.