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
- [UI Builder] Viewport's gizmos for Margin and Padding disappear when dragging to modify the value and the cursor leaves the Spacing section
- "Multiplayer Center" window does not reflect changes made in "Other Packages" section
- Crash on D3DKMTOpenResource when capturing with RenderDoc while GPU Skinning is set to GPU(Batched)
- Editing and saving Curve changes in UI Builder window throws multiple errors in the Console
- [UI Builder] Value is not selected when left clicking on Spacing/Border Widget values
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.