I’ve hit the limit on shader keywords (128) and I noticed in the list of shader keywords it lists a lot of keywords from shaders that I long ago deleted. I looked at all the shaders in the project and confirmed none have the listed keywords but they still show up in the list. How do I refresh the shader keyword list or manually edit it?
Hmmm, I wonder if you redefine the keywords you want to delete in a new shader, recompile, then remove them from that shader, it’ll fix it?
I think I managed to fix it today. It looks like if you have a material with an orphaned reference to that shader Unity holds on to the keyword. These were materials that were actually set to a different shader now, but must have previously been set to one of the old shaders. Maybe it had a serialized reference somewhere?
Anyway I went through deleting materials and reimporting shaders and eventually the shaders imported without errors. I really really hope Unity at some point allows us to dump a list of shader keywords and where they came from. This is pretty wonky as is.
Thanks for this topic, I removed a few unused shader packages and everything is fine.
Thanks dude, I cut my setpass calls in half because I had a material with unnecessary keywords.