Search Issue Tracker
By Design
Votes
0
Found in [Package]
10.0.0-preview.11
Issue ID
1261684
Regression
No
ShaderVariantCollection cannot be created the first time if a shader has a fallback shader
How to reproduce:
1. Open the attached project named "Case_12361684"
2. Right-click in the project view -> Create -> CUSTOM_NAME (Edits below)
3. Observe the error in the console window
4. Repeat Step 2
5. Observe that the Shader Variant Collection was created this time
Expected result: Shader Variant Collection is created on the first time
Actual result: It takes two tries to create a Shader Variant Collection
Reproducible with: 2019.4.4f1(7.3.1, 7.4.1), 2020.1.0b15(8.1.0, 9.0.0-preview.35), 2020.2.0a18(10.0.0-preview.11)
Could not test with: 2018.4.25f1(URP was not yet available and the project would not downgrade due to custom packages)
Notes:
1. The issue re-occurs every time the project is launched
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
- Fixing Message Loss in UMPE During Domain Reload
- The Editor freezes when ScheduleReadOnly of IJobParallelForTransform with dependency is used
- Text is truncated in the Inspector when the display scale is set to 150%
- CancellationTokenSource(<timeout>) has incorrect cancellation status when used in WebGL Player
- VFX property value names are cut off when properties with 'Arc' are viewed in the VFX Blackboard
Resolution Note:
The user side scripts gather shader variants right after loading SRP assets, which resets the pipeline.
Restoring the asset and making the main camera render things once forces the shaders to reset their state. Shader data can be safely analysed after doing this.