Obi Official Forum

Full Version: Shader Error when building project.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I'm using URP with OBI Rope, but I'm getting the well know Shader errors.
What could it be ?

See screenshot : http://tools.quadbyte.net/snap/Unity_sYu1pmaPFZ.png

Thanks in advance for your precious help.

Code:
Shader error in 'Obi/URP/Particles': Couldn't open include file 'Packages/com.unity.render-pipelines.universal/ShaderLibrary/Core.hlsl'. at Assets/Obi/Resources/ObiMaterials/URP/ObiLightingURP.cginc(3)


Shader error in 'Obi/URP/Simple Particles': Couldn't open include file 'Packages/com.unity.render-pipelines.universal/ShaderLibrary/Core.hlsl'. at Assets/Obi/Resources/ObiMaterials/URP/ObiLightingURP.cginc(3)
(28-09-2022, 11:05 PM)atracktiv Wrote: [ -> ]Hi,

I'm using URP with OBI Rope, but I'm getting the well know Shader errors.
What could it be ?

See screenshot : http://tools.quadbyte.net/snap/Unity_sYu1pmaPFZ.png

Thanks in advance for your precious help.

Code:
Shader error in 'Obi/URP/Particles': Couldn't open include file 'Packages/com.unity.render-pipelines.universal/ShaderLibrary/Core.hlsl'. at Assets/Obi/Resources/ObiMaterials/URP/ObiLightingURP.cginc(3)

Shader error in 'Obi/URP/Simple Particles': Couldn't open include file 'Packages/com.unity.render-pipelines.universal/ShaderLibrary/Core.hlsl'. at Assets/Obi/Resources/ObiMaterials/URP/ObiLightingURP.cginc(3)

Hi!

If the file is there indeed, this means Unity cannot resolve "com.unity.render-pipelines.universal", which probably indicates URP is not correctly installed.
Which file path is shown by Unity when selecting Core.hlsl in the project?

[Image: mAF9IPS.png]
(29-09-2022, 08:24 AM)josemendez Wrote: [ -> ]Hi!

If the file is there indeed, this means Unity cannot resolve "com.unity.render-pipelines.universal", which probably indicates URP is not correctly installed.
Which file path is shown by Unity when selecting Core.hlsl in the project?

[Image: mAF9IPS.png]


The path in the project status bar seems correct to me.

I have really no clue on what's going on. Already tried to remove URP then redid the setup. and I always got this.
I'm on Unity 2021.3.10f1

http://tools.quadbyte.net/snap/0E44wjyAbW.png
(29-09-2022, 11:23 AM)atracktiv Wrote: [ -> ]The path in the project status bar seems correct to me.

I have really no clue on what's going on. Already tried to remove URP then redid the setup. and I always got this.
I'm on Unity 2021.3.10f1

http://tools.quadbyte.net/snap/0E44wjyAbW.png

I'm unable to reproduce this, sounds like a Unity bug. If the URP pipeline is correctly installed and the files are there, there's no reason for other shaders not to find them.

Make a backup of your project (don't skip this!) and then try deleting the Library folder and reopen the project.
Thanks a ton Jose, that fixed it!
Totally forgot about trying to delete the Library folder when things go awry.
Cheers and have a great day.
(29-09-2022, 12:24 PM)atracktiv Wrote: [ -> ]Thanks a ton Jose, that fixed it!
Totally forgot about trying to delete the Library folder when things go awry.
Cheers and have a great day.

Glad to hear that Sonrisa ,let me know if I can be of further help. cheers!