Change SRP
What's SRP?
SRP (Scriptable Render Pipeline) is a programmable rendering architecture provided by Unity that allows developers to customize rendering behavior based on project requirements. Unity officially offers two main SRP implementations:
- URP (Universal Render Pipeline): Optimized for cross-platform performance, suitable for most projects.
- HDRP (High Definition Render Pipeline): Prioritizes high visual fidelity, ideal for high-end platforms and photorealistic projects.
How to Check the Current Render Pipeline
You can check which render pipeline your project is currently using by following these steps:
- Open the Unity Editor and go to Edit > Project Settings > Graphics
-
Look at the Set Default Render Pipeline Asset field:
- If it shows a HDRenderPipelineAsset, the project is using HDRP
- If it shows a UniversalRenderPipelineAsset, the project is using URP
Change rendering pipeline
In this project, both HDRP and URP scenes are preconfigured separately.
-
Change the
Default Render Pipeline
in Edit -> ProjectSettings -> Graphics, and set it toHDRenderPipelineAsset
. -
Open the AutowareSimulationDemo scene.
-
Add Scripting Define Symbols
After switching the render pipeline, you need to change the scripting define symbol from URP to HDRP to enable HDRP-specific conditional compilation.-
In the Unity Editor, go to Edit -> Project Settings -> Player
-
In the right panel, expand Other Settings
-
Find the Scripting Define Symbols field under the Script Compilation section
-
Remove URP and add HDRP
-
-
Restart the Unity Editor after changing the render pipeline.
- Especially when switching from URP to HDRP, the following error may occur:
-
This is caused by leftover SRP cache and materials not being refreshed.
-
Scene materials may appear broken (e.g., white), even without error logs when switching from HDRP to URP.
-
Restarting Unity Editor helps avoid unknown issues and ensures proper scene rendering.
-
Change the
Default Render Pipeline
in Edit -> ProjectSettings -> Graphics, and set it toUniversalRenderPipelineAsset
. -
Open the AutowareSimulationURPDemo scene.
-
Add Scripting Define Symbols
After switching the render pipeline, you need to change the scripting define symbol from HDRP to URP to enable URP-specific conditional compilation.-
In the Unity Editor, go to Edit -> Project Settings -> Player
-
In the right panel, expand Other Settings
-
Find the Scripting Define Symbols field under the Script Compilation section
-
Remove HDRP and add URP
-
-
Restart the Unity Editor after changing the render pipeline.
- Especially when switching from URP to HDRP, the following error may occur:
-
This is caused by leftover SRP cache and materials not being refreshed.
-
Scene materials may appear broken (e.g., white), even without error logs when switching from HDRP to URP.
-
Restarting Unity Editor helps avoid unknown issues and ensures proper scene rendering.
-
Check the lighting configuration: