We have a relatively larger project with multiple contributors. At some point we started to get the following error:
Shader error in ‘’: Parse error: syntax error at line 1
There is no indication which shader generates the error, and there are no rendering errors in the scene (no purple objects) We only get this error when we press play (a recompilation or build of the project does not generate the error) and we get it like 10 times and then it stops. We tried forcing a recompile by deleting/editing a few shaders that were modified recently, unfortunately to no effect.
I’ve also read somewhere that the line endings could cause this error but that doesn’t seem to be the case here. We’re using Unity Pro 4.5.5p4.
Does anyone have an idea on how to identify which shader is generating the error (instead of deleting them 1 by 1) or how to stop it from occuring?