Search Issue Tracker
Fixed in 2022.2.X
Fixed in 2021.2.X, 2022.1.X
Votes
0
Found in
2021.2.0a16
2021.2.1f1
2022.1
Issue ID
1380745
Regression
Yes
Shader Keywords array always returns 0 length when keywords are visible in the Inspector
Reproduction steps:
1. Open the '1380745-sample' project
2. Open the 'test' Scene
3. Select the testMaterial and observe it in the Inspector in the Debug mode; note that there is a Shader Keyword 'test_keyword'
4. Observe the Console; the 'test' script prints the lengths of the Shader Keywords array
Expected result: the printed Shader Keywords array length is 1
Actual result: the printed length is always 0
Reproducible with: 2021.2.0a16, 2021.2.3f1, 2022.1.0a15
Not reproducible with: 2019.4.32f1, 2020.3.23f1, 2021.1.28f1, 2021.2.0a15
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
- Inconsistent behaviour when interacting with different dropdown types with pointer events on parent Visual Element
- Hidden GameObjects won't re-enable when they have call "DontDestroyOnLoad" function
- Overlay Canvas are rendered on each split-screen camera when HDR is enabled
- [Android] The Player loses focus when using UnityEngine.Handheld.StartActivityIndicator() with Facebook SDK
- Build fails with "Building Library/Bee/artifacts/MacStandalonePlayerBuildProgram/gahcy/hj9mx3z/951.0 failed with output:..." errors when Scripting Backend is set to IL2CPP
Resolution Note (fix version 2022.2):
Fixed in 2022.2.0a8
Resolution Note (fix version 2022.1):
Fixed in 2022.1.0b14
Resolution Note (fix version 2021.2):
Fixed in 2021.2.18f1