[BUG] Change of URP asset do not work

Hi, I have encountered wierd an error with changing URPAsset (from script and editor).

6822719--792683--yyy.gif

Reproduction steps:

  • Create a new Render Pipeline Asset
  • Create custom RendererData
  • Attach new default Renderer Pipeline Asset in editor settings
    (Notice no change)
  • Attach custom RendererData to your “main” renderer or replace the default one
    (Notice change)
  • Add more RendererDatas in your custom RendererAsset
    (Notice inability to change to new RendererDatas)

See gif for more examples - generally, graphical settings change in editor setting do not work as intended, as it leaves the previous one.

Unity 2020.1.17f1
URP 8.3.1 as well as all versions to the latest possible preview for this unity version 9.0.0-preview.72

Did anyone encounter this issue and know how to fix it?

Unity restart does not help at all! Only clearing Library but if we want to change it back it does not work again…

Note this change of current graphics do not work from code as well:

var loaded = AssetDatabase.LoadAssetAtPath<UniversalRenderPipelineAsset>("Assets//UniversalRP_OcclusionDepth.asset");
GraphicsSettings.renderPipelineAsset = loaded;
1 Like

Was this ever fixed? I’m having the exact same issue. No matter whether I’m dragging it via the Editor, or changing it in script, it’s always staying with the original pipeline asset.

Printing out the GraphicsSettings.renderPipelineAsset confirms that I have changed to another asset, but there is no visual change on screen (I set the RenderScale down to something really small on the one I’m changing to, so the change would be obvious).

For future people’s reference - the issue is that we shouldn’t be changing it via GraphicsSettings.renderPipelineAsset anymore - it should be done via the QualitySettings (each Quality level can have its own renderPipelineAsset).

I think this should be made clearer in the editor itself.

5 Likes

hey! If you have URP Asset set in the Quality settings - it will override the one in Graphics settings. However, if you remove the URP asset from Quality settings, then you should be able to change URP asset in Graphics settings without any problems
6948170--817217--URP_Settings.gif

9 Likes

Yeah, that’s what I discovered. To save other people this confusion in future, it might be a good idea for the editor to show in the GraphicsSettings window that the value is being overridden by a setting in QualitySettings, as it’s not very obvious right now (especially when working on a team, and someone else changed the QualitySettings to include one).

Anyway, just a thought/suggestion.

thanks a lot for the feedback @tinto !:slight_smile: We are actively working on a new solution for URP settings that might help avoid this confusion

Will the TargetEye bring back the option for LeftEye and RightEye where now under URP in Camera its just Both or None?

Also, switching pipeline assets seems to take 5-6 seconds, is there a state or event to check for while Unity is performing the switch action and or at least when finished?

thanks so much! that really helped.

Speaking from the year 2022. Spent many hours to finally found the right thing to google. thanks for the solution !!

Can’t you just like, put a note on graphics settings next to SRP asset that says something along the lines: “Note! Currently selected quality tier is set to override SRP asset set here” and have a link to that quality setting. Would leave out all guesswork on what is happening.

I still see people getting confused by the current behavior on weekly basis and Unity putting these overrides by default on their templates surely doesn’t help there.

1 Like

I found that also quite confusing. I was wondering why the performance is worse after upgrading from built-in to URP. The reason was that the Quality settings was set to Ultra and my change in the Graphic setting got overriden. Very confusing…

Unity, please fix this for other people. Just a simple warning saying that its being overridden by the Quality project settings. I just spent so long (3+ hours) trying to figure out why in the world it was not changing pipeline assets when I changed it in the Graphics page!

And judging by this thread many other people have too. It would take a simple 15 min to code this in the editor. @erikabar

Just came across this thread in December 2022 - surely there’s been more than enough time to fix this…

Wow, thanks Tinto! I’ve been stuck on this for a long time.
And Unity - forget about warnings just UPDATE THE DOCUMENTATION - it says to change it via graphic settings which obviously does not work.

wow… and that’s why we user test :stuck_out_tongue: I hope it’s fixed in recent Unity versions (working on an older project in 2021.x ATM)

Thank you friend!

THANK YOU! I was loosing my mind!