Search Issue Tracker
Active
Under Consideration for 2022.3.X, 6000.0.X, 6000.2.X, 6000.3.X, 6000.4.X
Votes
2
Found in
2022.3.61f1
6000.0.45f1
6000.1.0b13
6000.2.0a8
6000.2.0a9
6000.3.0a1
6000.4.0a1
Issue ID
UUM-102156
Regression
No
Keywords on Materials and their variants aren't updated until they are rendered in Scene view, Game view or Inspector
How to reproduce:
1. Open the “Material Keyword Reproduction.zip” project
2. Open the “SampleScene” scene
3. Close all open Scene views, Game views, and Inspector windows/tabs
4. Open the KeywordColorShader.shader file in any IDE
5. Uncomment the “[Toggle(_BLUE)]_BLUE("BLUE", Float) = 1” property and save the changes
6. Navigate to the Editor and save the project
7. Open up the OriginalMaterial.mat and VariantInScene.mat files in a text editor
8. Open the Scene view or Game view (anything that renders the objects with the materials)
9. Save the project again
10. Observe the “m_ValidKeywords:” list in the text editor
Alternatively:
1. Repeat steps 1-5 from the upper reproduction steps
2. Open the Inspector and select the VariantNotInScene.mat in the Project tab (to highlight it in the Inspector)
3. Open the “VariantNotInScene.mat“ in a text editor
4. Observe the “m_ValidKeywords:” list in the text editor
Expected Results: The Material/s have the “_BLUE” keywords
Actual Results: The Material/s do not have the “_BLUE“ keywords
Reproducible in: 2022.1.0a1, 2022.3.61f1, 6000.0.45f1, 6000.1.0b13, 6000.2.0a8
Reproduced on: Windows 11 Pro (24H2), M1 Mac
Not reproduced on: No other environment tested
Notes:
- To reproduce again, the project needs to be re-extracted or the values need to be reset
- In 2022.1.0a1, “m_ValidKeywords” property is named “m_ShaderKeywords”
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Some UXML Template Asset foldouts appear enabled when all fields inside are disabled
- URP Terrain Demo crash on burst_signal_handler after Generating lighting
- Project window button icons are poorly visible and their shades differ in Light theme
- GC.Alloc called by HDRenderPipeline.LensFlareMergeOcclusionDataDrivenPass() when playing the default HDRP Sample Template project
- Automatic LOD fails and SRP Batcher incompatibility occurs when using spline-based quad-topology meshes
Add comment