URP Upgrading

This section describes how to upgrade an SCK project to URP.

Install the URP Package

Open the Package Manager and install the Universal RP package into your project.

Create A URP Asset

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.

Upgrade Materials

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.

Set Up Camera Layering

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.

Update Shader Keys

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.

Flash Controller

Open the Muzzle Flash prefab, find the Flash Controller script, and set the Color Property Name to _BaseColor.

Jet Exhaust Visual Effects Controller

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.

Effects Color Manager

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.

Beam Weapon Unit

The Beam Weapon Unit component controls the color of various beam effects. Set all the Color Keys to _BaseColor.

Upgrade The Energy Shield

A URP compatible shader (made using Shader Graph) is provided for the energy shield. To get it please contact VSXGames on the forum, Discord or at contact@vsxgames.com

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.

Post Processing

URP has its own Post Processing that needs to be set up from scratch, please check out Unity's relevant documentation for more information.

Last updated