Search Issue Tracker
By Design
Votes
0
Found in
6000.0.22f1
Issue ID
UUM-83999
Regression
Yes
Shader Keywords are not detected when defined in include files
Reproduction steps:
1. Open the attached “BugRepro” project
2. Open the “Assets/Scenes/SampleScene.unity” Scene
3. Enter the Play Mode
4. Press the Spacebar
5. Observe the Game view
Expected result: Both spheres change color
Actual result: Only one sphere changes color
Reproducible with: 2023.2.18f1, 6000.0.22f1
Not reproducible with: 2021.3.44f1, 2022.3.50f1, 2023.2.17f1
Reproducible on: Windows 11
Not reproducible on: No other environment tested
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
- GetCurrentAnimatorClipInfoCount() and GetNextAnimatorClipInfoCount() return 0 when animator is in transition
- GPU utilization increases by 20% on Meta Quest headsets when Render Graph is enabled on 6000.0.16f1 and higher
- Value on Slider (Int) control in UI Builder displays as default when saving UI Document
- Color mismatch in UI Builders Library panel when the Editors theme is set to Light Mode
- [Android ] "AndroidJNI.ToBooleanArray" returns a random non-zero value instead of "IntPtr.Zero" when the method argument is null
Resolution Note:
The documentation says that keyword directives can only be included using a special directive, `#include_with_pragmas`.
Please use this one instead of regular includes. It will work in all currently supported versions of Unity.