Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  building URP ERROR!! but we DON'T use urp....
#1
Triste 
Hi there, 

...we DON'T use URP and when we build android APK, it appears errors as attached.


https://drive.google.com/file/d/1zqLYrWC...sp=sharing

BUT the apk is still built out and could be played, 
BUT the rope just disappeared, no rope in the screen.
Reply
#2
Hi!

(22-09-2021, 05:42 AM)webmagic Wrote: Hi there, 

...we DON'T use URP and when we build android APK, it appears errors as attached.

That's precisely the issue, you're not using URP yet URP shaders are being built for your project. If not using URP, you should remove the entire /Obi/Resources/ObiMaterials/URP folder. It contains shader files that won't compile if the proper render pipeline is not included in your project.

(22-09-2021, 05:42 AM)webmagic Wrote: BUT the apk is still built out and could be played, 
BUT the rope just disappeared, no rope in the screen.

This seems to be unrelated to the URP shaders. Make sure any assets used by your rope are being included in the build. Specifically, if you're creating ropes at runtime trough scripting, make sure your rope section assets are being referenced and not just loaded in a script. Unity will not include unreferenced assets (of any kind, materials, textures, audio, and also custom ones like rope sections) in your build.

For example, if you do:

Code:
ropeRenderer.section = Resources.Load<ObiRopeSection>("DefaultRopeSection");

But the DefaultRopeSection asset is not referenced by any component in the scene, Unity won't include it in the build, and Resources.Load will fail at runtime. A rope with no section to render, won't be rendered. Same happens with all assets in Unity.

kind regards,
Reply