An example project showing a bug in ShaderVariantCollection
To reproduce:
- Open and run the project in the editor.
- Output is "Shader ... found False"
- Check the
ShaderVariantCollection
contains the shader. - Delete the variant.
- Re-add the variant.
- Run the project.
- Output is "Shader ... found True"
- Close Unity
- Re-open the project and run in the editor.
- Output is "Shader ... found False"