Steps to reproduce:
1. Create a new unlit shader and a material, assign the shader to the material
2. Add `[Toggle] enableFoo("Enable foo", Integer) = 0` to the Properties section of the shader and save
3. Select the material
Actual results:
Errors appear in the console.
Expected results:
No errors appear on the console.
Reproducible with versions:
2021.3, 2022.3, 6000.0, 7000.0
Not reproducible with versions:
Can't test with versions:
Tested on (OS):
MacOS