Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  URP Shader Error
#3
Hi,

Just answered you via email, but I'm also writing it here in case it's useful for other users.

In newer URP package versions, the tag used to identify URP-only shaders has changed from "UniversalRenderPipeline" to "UniversalPipeline". This will prevent shaders from working in builds using recent URP versions, although they'll work fine in editor (quite sure this is a bug in Unity, as it would stand to reason for the shader to stop working in both editor and builds when using an incorrect tag).

Open up the "Obi/Resources/ObiMaterials/URP/FluidShaderURP.shader"  file, and change this line at the top:

Code:
Tags{"RenderPipeline" = "UniversalRenderPipeline"}

so that it looks like this:

Code:
Tags{"RenderPipeline" = "UniversalPipeline"}

That is, just remove the "Render" word in the tag. Then build your project again, and it should work.
The same applies to any other URP shaders included with Obi, and others you might find around or be part of other assets. I've posted about this in the Unity forums: https://forum.unity.com/threads/renderpi...d.1468196/

Will include this change in the next Obi version.

kind regards,
Reply


Messages In This Thread
URP Shader Error - by Yumineko - 31-07-2023, 11:31 AM
RE: URP Shader Error - by josemendez - 31-07-2023, 11:47 AM
RE: URP Shader Error - by josemendez - 02-08-2023, 08:46 AM