unity-game-engineshaderurp

In unity custom shader materials appear pink


I'm using Unity 2020.3.20f1. I created a 3D object (sphere) and applied a material which has a custom shader. Now the whole sphere appears pink.

I'm using URP, but I added it to an existing project. What I already tried is to upgrade the material to URP material, but it didn't fix it.

Thanks!


Solution

  • The problem was that I didn't add URP as the fefault shader in the graphic settings. (I had to manually create a URP renderer asset tho) After adding it and upgradeing ALL materials to URP it started working.