Search Issue Tracker
Fixed in 2021.3.22f1
Fixed in 2023.2.0a5
Votes
0
Found in
2021.3.17f1
2022.2.5f1
2023.1.0b3
2023.2.0a1
Issue ID
UUM-27610
Regression
Yes
Keywords are not being set when using Material.shaderKeywords from ShaderGUI
Steps to reproduce:
1. Open the attached project “KeywordBug“
2. Select the “Assets/Mat.mat“ Material
3. Set the Shader to “Assets/TestUnlit.shader“
4. Change the Inspector window mode to Normal (click the “3 dots” icon next to the “lock“ icon)
5. Enable the “Use Color 2“ option
6. Change the Inspector window mode to Debug
7. COLOR2 is listed in the Valid Keywords list
8. Change the Inspector window mode to Normal
9. Modify the Color2 color
10. Change the Inspector window mode to Debug
11. Observe the Valid Keywords list
Expected result: COLOR2 is listed under Valid Keywords
Actual result: COLOR2 is not listed under Valid Keywords, despite the "Use Color 2" toggle being on
Reproducible with: 2021.2.18f1, 2021.2.19f1, 2021.3.17f1, 2022.2.5f1, 2023.1.0b3, 2023.2.0a1
Not reproducible with: 2020.3.45f1, 2021.2.17f1
Reproducible on: Windows 10
Notes:
1. Material color reverts to “Color“ when pressing CTRL + S after step 8
2. Look at the attached video for clarity
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
Resolution Note (fix version 2021.3.22f1):
Fixed by https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-27639
Resolution Note (fix version 2023.2.0a5):
Fixed by https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-27639