Search Issue Tracker
Fixed in 2020.2.X
Fixed in 2019.4.X, 2020.1.X
Votes
0
Found in
2019.3
2019.3.2f1
2020.1
2020.2
Issue ID
1244648
Regression
No
ShaderVariantCollection.Contains returns the wrong result for a variant after removing an unrelated variant from the collection
How to reproduce:
1. Open user-submitted project (ShaderVariantCollectionUPR813031.zip)
2. Open the SampleScene
3. Select Resources/NewShaderVariants
4. Remove the Normal_SUNDISK_SIMPLE by clicking the minus symbol button
5. Add the Normal_SUNDISK_SIMPLE again via the plus symbol button
6. Enter Play Mode - see the Console output for ShaderVariantCollection.Contains(true)
7. Add the Normal_SUNDISK_HIGH_QUALITY via the plus symbol button
8. Enter Play Mode - see the Console output for ShaderVariantCollection.Contains(true)
9. Remove the Normal_SUNDISK_HIGH_QUALITY via the minus symbol button
10. Enter Play Mode and see the Console output
Expected result: ShaderVariantCollection.Contains returns True
Actual result: ShaderVariantCollection.Contains returns False
Reproducible with: 2019.3.13f1, 2020.1.0b9, 2020.2.0a11
Not reproducible with: 2018.4.22f1
Could not test with: 2017.4.40f1(package unavailable)
Reproducible with package versions: 5.7.2, 9.0.0 - preview.14
Not reproducible with package versions: 4.10.0 - preview
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
- Errors "InvalidOperationException: Trying to use a texture (_InternalGradingLut)..." and “Render Graph Execution error” shown and Scene turns black when 16 or more Render Objects are used
- GameObjects in the Game View are rendered differently than in the Scene View when the Rendering Path is set to "Deferred" and Screen Space Shadows Renderer Feature is added
- Errors “InvalidOperationException: Trying to use a texture (_CameraDepthTexture)...” and “Render Graph Execution error” shown when selecting GameObjects with Mesh Renderer from the Hierarchy
- macOS stutters in a minimal project
- [Usability] HDRP Wizard calls for VR fixes when opening the HDRP Wizard a second time after they have already been applied and the Wizard has finished checking
Resolution Note (fix version 2020.2):
Fixed in 2020.2.0a19
Resolution Note (fix version 2020.1):
Fixed in 2020.1.0f1
Resolution Note (fix version 2019.4):
Fixed in 2019.4.6f1