Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug / Crash  Android not building - missing URP dependency
#1
My scenario

- Create New 3D project in Unity
- Add Obi Rope 6.5.1 (My Assets)
- Add Universal RP (Unity Registry)
- Add Collections (Unity Registry) -> Burst is already there by default
- Add a Rope to the sample scene

- Build for Windows -- OK

- Build for Android, 2 errors:
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)


- Delete folder Assets/Obi/Resources/ObiMaterials/URP from project

Builds OK now.
Reply
#2
(14-03-2023, 01:10 PM)riesvriend Wrote: - Build for Android, 2 errors:
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)


- Delete folder Assets/Obi/Resources/ObiMaterials/URP from project

Builds OK now.

Hi!

Yep, this is explained in the setup guide:
http://obi.virtualmethodstudio.com/manua...setup.html

Quote:If you're not using SRPs but the built-in pipeline, it's safe to delete the /Obi/Resources/ObiMaterials/URP folder. Otherwise Unity will raise an error at build time, stating that it cannot find the URP pipeline installed.
Reply