Question: How do I remove the Universal Render Pipeline from my Unity project?
Answer
To remove the Universal Render Pipeline (URP) from your Unity project, you'll need to follow these steps. Note that as of Unity 2022 LTS, the process might differ slightly or require additional steps:
-
Open the Package Manager:
- Go to
Window
->Package Manager
.
- Go to
-
Remove URP Package:
- In the list of packages, find the "Universal RP" package.
- Click on it and then click the "Remove" button if available. If not, proceed to the next steps.
-
Revert to the Built-in Renderer:
- Open the
Graphics
settings viaEdit
->Project Settings
->Graphics
. - Under the "Scriptable Render Pipeline Settings," click the "X" button or drag and set the field to
None
to revert back to the built-in render pipeline.
- Open the
-
Change Material Settings:
- Materials that were designed for URP may not look correct once you switch back to the built-in pipeline. You might have to manually change their shader selection from URP shaders to standard shaders.
Here's a quick example of how you might programmatically change shaders in materials:
foreach (var material in Resources.FindObjectsOfTypeAll<Material>()) { if (material.shader.name.StartsWith("Universal Render Pipeline")) { material.shader = Shader.Find("Standard"); } }
-
Update Quality Settings:
- Navigate to
Edit
->Project Settings
->Quality
. - For each quality level, make sure that the "Rendering" section is set up correctly, and the "Scriptable Render Pipeline" field is cleared.
- Navigate to
-
Check Project for URP Assets:
- Use the search bar in the Project window to find any remaining URP assets by searching for "t:RenderPipelineAsset".
- Remove any assets found or replace them with relevant non-URP versions.
-
Fix any Broken Scripts:
- If you have scripts that reference URP namespaces (
using UnityEngine.Rendering.Universal;
), you'll need to remove or update those references.
- If you have scripts that reference URP namespaces (
-
Clean Up and Test:
- After removing URP, go through your scenes and prefabs to ensure everything looks as expected.
- Pay special attention to lighting and post-processing, as those may be significantly different after the change.
-
Reimport All Assets (Optional):
- Sometimes, changes might not reflect immediately, so you can force Unity to recompile all assets by going to
Assets
->Reimport All
.
- Sometimes, changes might not reflect immediately, so you can force Unity to recompile all assets by going to
Please note that in Unity 2022 LTS and later versions, fully removing URP may involve additional steps due to tighter integrations and dependencies. Always back up your project before making significant changes to avoid data loss.
Was this content helpful?
Other Common Game Engines Questions (and Answers)
- Can You Use C# in Unreal Engine?
- Is Unreal Engine Open Source?
- Can Unreal Engine make 2D games?
- Does Unreal Engine Use C++?
- Does Unreal Engine Use Python?
- What Language Does Unreal Engine Use?
- Does Unreal Engine Use JavaScript?
- Does Unreal Engine work on Linux?
- How Do I Uninstall Unreal Engine 5?
- Is Blender or Unreal Engine Better?
- Is Unreal Engine Good for Beginners?
- Does Unreal Engine Work on Mac?
Free System Design on AWS E-Book
Download this early release of O'Reilly's latest cloud infrastructure e-book: System Design on AWS.
Switch & save up to 80%
Dragonfly is fully compatible with the Redis ecosystem and requires no code changes to implement. Instantly experience up to a 25X boost in performance and 80% reduction in cost