Comment on page
This section describes how to upgrade an SCK project to URP.
Open the Package Manager and install the Universal RP package into your project.
After installing URP, it's necessary to create a Pipeline Asset for your project.
- 1.Right click in Project tab and select Create > Rendering > Universal Render Pipeline > Pipeline Asset (Forward Renderer)
- 2.Click Edit > Project Settings > Graphics and set the Scriptable Render Pipeline Settings field to the pipeline asset you just created.
After installing URP and creating the pipeline asset, the materials in your scenes will be pink, because they haven't yet been converted to URP materials. Let's do this now.
Click Edit > Render Pipeline > Universal Render Pipeline > Upgrade Project Materials To UniversalRP Materials.
The Vehicle Camera uses layered cameras for rendering the UI over the scene. This must be configured in URP or the Game View will just show blue.
Open the Vehicle Camera hierarchy and go to the Camera_UI_ManagedFOV and Camera_UI_NoFOV cameras, find their Camera components and set the Render Type to Overlay.
In the Vehicle Camera hierarchy, go to the Main Camera, open the Camera component and in the Stack add the Camera_UI_ManagedFOV and Camera_UI_NoFOV cameras.
The cameras should now render correctly.
The UVC kits have several scripts that control shaders for visual effects. The main key used to access the color for Particle Unlit shaders in the built-in render pipeline was _Color, but in the equivalent URP shader it is _BaseColor.
Open the Muzzle Flash prefab, find the Flash Controller script, and set the Color Property Name to _BaseColor.
On all your spaceship prefabs, in the hierarchy under the Exhaust object, you will find this component. Change all the shader color names to _BaseColor.
This component is used as a generic way to control the color of effect shaders. On all prefabs that use it, set the Color ID to _BaseColor.
The Beam Weapon Unit component controls the color of various beam effects. Set all the Color Keys to _BaseColor.
Install the Energy Shield URP package and on all the energy shield materials used in your game, set the shader to VSX > Universal Vehicle Combat > Energy Shield URP.
URP has its own Post Processing that needs to be set up from scratch, please check out Unity's relevant documentation for more information.