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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
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