Error building Player: Shader error in 'Shader Graphs/glTF-pbrMetallicRoughness': 'PBRDeferredFragment': cannot convert from 'struct v2f_surf' to 'struct SurfaceDescription'

I’ve been stuck on a bug for the past five days, and it’s really frustrating me now.

I decided to finally update my RPM (big regrets).

Updating it has given me the error attached.

I’ve tried everything, including clean RPM installs, and have even used the latest RPM package from today’s update.

It’s only fixed if I force the Active Targets inside that shader to be my chosen rendered pipeline (Universal). However, this gets overwritten after a build.

Please help me to fix it, as I’ve wasted 5 full working days on it this week… It’s things like this why I never update RPM, as I always get errors like these.



The issue is with RPM in their dependencies using the older version of gltfast:

com.unity.cloud.gltfast: 6.0.1

If you go here and grab the newest version of gltfast it solved the issue for me:

2 Likes

Hello Gareth! Has Matija’s answer helped?

I had the latest version of GLTFast installed, so that wasn’t the issue. I also deleted everything associated with GLTFast (and the Library folder) and did a clean install, but nothing worked.

In the end, I did so many different things, including upgrading and downgrading (several times) my Unity project to different versions. It somehow became fixed.

I have another build that uses RPM, but I’m very hesitant to update RPM now because of all the issues in the past, including this one.