Help building URP ERROR!! but we DON'T use urp.... - Printable Version +- Obi Official Forum (https://obi.virtualmethodstudio.com/forum) +-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html) +--- Forum: Obi Rope (https://obi.virtualmethodstudio.com/forum/forum-4.html) +--- Thread: Help building URP ERROR!! but we DON'T use urp.... (/thread-3101.html) |
building URP ERROR!! but we DON'T use urp.... - webmagic - 22-09-2021 Hi there, ...we DON'T use URP and when we build android APK, it appears errors as attached. https://drive.google.com/file/d/1zqLYrWCXadxadKcBuBwglBrxP5zLBGlm/view?usp=sharing BUT the apk is still built out and could be played, BUT the rope just disappeared, no rope in the screen. RE: building URP ERROR!! but we DON'T use urp.... - josemendez - 22-09-2021 Hi! (22-09-2021, 05:42 AM)webmagic Wrote: Hi there, 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, 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, |