Setting up UniStorm with URP - Black-Horizon-Studios/UniStorm-Weather-System GitHub Wiki
IMPORTANT FOR UNITY 6: There is currently a Unity bug with Unity 6 versions 6000.0.21f to 6000.0.23f that will sometimes give an error related to RenderTargetHandle being obsolete. If you encounter this error, updating to version 6000.0.28f1 or higher should resolve the error.
IMPORTANT: Ensure you are using the 5.4.0 (or higher) version of UniStorm as it includes important bug fixes related to URP.
Note: Before proceeding, ensure your Unity version is 2019.4.9 or greater and that you have backed up your project.
Step 1
The first thing you should do is backup your projects. This is always recommended. Also, ensure that you are using Unity version is 2019.4.9 or greater.
Step 2
Ensure that you have URP installed. This can be found through the Unity Package Manager which is located Windows>Package Manager within Unity.

Step 3
Before importing the UniStorm URP UnityPackage, you have to create your own Universal Render Pipeline Asset. If you have already created one, you can skip this step.
To do this, right click within the Project tab and go to Create>Rendering>Universal Render Pipeline>Pipeline Asset (Forward Renderer):
If you are using Unity 2021, creating a Pipeline asset is a little different with Create>Rendering>URP Asset (with Universal Renderer):
Step 4
Ensure that you then assign the newly created URP Asset to Graphic Scriptable Render Pipeline Settings. This can be found within Unity by going to Edit>Project Settings>Graphics. This should be the asset that does not have _Render within its name.


Lastly, if you are using Unity 2021, ensure that you also set Intermediate Texture to Always. This will allow the added Render Features to be visible.

Step 5
IMPORTANT: Ensure you are using the 5.4.0 (or higher) version of UniStorm as it includes important bug fixes related to URP.
IMPORTANT - Unity 2023 and Unity 6 Support (Render Graph) RECOMMENDED
You will need the UniStorm v5.4.0 update or higher and import the UniStorm URP Support (Render Graph Support) UnityPackage. You can find the UnityPackage located under UniStorm Weather System>URP Support>UniStorm URP Support (Render Graph Support) and import it into your current project (You can import by double clicking the UniStorm URP Support UnityPackage file within Unity).
IMPORTANT - Unity 2023 and Unity 6 Support (Compatibility Mode)
Enable Compatibility Mode and import the UniStorm URP Support (Compatibility Mode Support) package. You can find the UnityPackage located under UniStorm Weather System>URP Support>UniStorm URP Support (Compatibility Mode Support) and import it into your current project (You can import by double clicking the UniStorm URP Support UnityPackage file within Unity). Next, enable Compatibility Mode. Note: Unity has fully deprecated Compatibility Mode with Unity 6.3.
This will update several scripts and shaders to be URP compatible, add some new scripts, and add certain image effects to your Pipeline Asset.
If you do not see the UniStorm URP Support UnityPackage files or folder, ensure that are have updated to UniStorm version 5.4.1 and that you are using Unity 2019.4.9 or higher.

Step 6
Once everything has finished importing, and you have created and assigned a Universal Render Pipeline Asset, you can go to Window>UniStorm>Add URP Renderer Features. This should automatically add the needed Renderer Features to your Universal Render Pipeline Asset.


Step 7
You can now test the newly added URP located under UniStorm Weather System>URP Support>Scene.

Step 8
If things are not working correctly for you, it can be related to certain versions of Unity and their default settings on the Universal Render Pipeline Asset or Data.
Ensure your Universal Render Pipeline Asset or Data have the following highlighted settings:
Unity 2019 versions (Asset)

Unity 2021+ versions (Data) (Forward Render Only)

Step 9
If you are updating from version 5.3.2 or earlier, you will need to go to Window>UniStorm>Add URP Renderer Features. This will add the new UniStorm Clouds Renderer Feature to your Pipeline Asset. This was added with the 5.3.3 update. So, ensure you are using the newest version.
Step 10 (Optional)
The 5.3.3 update improved lighting for sunsets and sunrises. In order to see these changes, you will need to adjust your Sun Attenuation Curve setting (from the UniStorm Editor, located under the Celestial>Sun Settings) so that the 6th point from the left has a value of 9.12 as shown below. This will allow the sunlight to show on the clouds until the sun has set below the horizon line.

NOTES:
- The previous scenes will not be fully URP compatible as they will be missing the terrain URP material. To fix this, simply apply the URP Terrain material to the terrain.
- If your screen becomes black, ensure you are using the most recent version of UniStorm as this is a bug that has been fixed.
- If you cannot see the UniStorm clouds, when using URP, ensure you are using the most recent version of UniStorm and that you see step 9.
- UniStorm's Cloud Shadows are not currently compatible with URP.
- UniStorm's Global Weather shaders are not compatible with URP.
- IMPORTANT FOR UNITY 6: There is currently a Unity bug with Unity 6 versions 6000.0.21f to 6000.0.23f that will sometimes give an error related to RenderTargetHandle being obsolete. If you encounter this error, updating to version 6000.0.28f1 or higher should resolve the error.