Search Issue Tracker
By Design
Votes
4
Found in
2018.4
2019.4.0f1
2020.2
Issue ID
1285079
Regression
No
Only the default Shader variant from the ShaderVariantCollection is included in the Shader Bundle
How to reproduce:
1. Open attached "ShaderBundleBugReport.zip" and SampleScene scene
2. In the Toolbar, choose Bug/Bundle to build the Shader bundle
3. Enter the Play mode
4. Observe the colors of the Game Objects
Expected result: The Cube color is red and the Sphere color is green
Actual result: The Sphere and the Cube have green color
Reproducible with: 2018.4.28f1, 2019.4.13f1, 2020.1.10f1, 2020.2.0b8
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
- Crash on ShaderLab::ShaderState::ApplyShaderState when entering Play Mode and calling ShaderWarmup.WarmupShaderFromCollection with a shader that has dynamic_branch
- Crash on operator delete[] when a serializable structure in the System namespace is serialized by a MonoBehaviour
- [macOS] forward and backward mouse buttons are recognized as middle mouse button
- NavMeshModifier.OnEnable/OnDisable gets progressively slower when called repeatedly
- "System.Net.CookieContainer" throws an "ArgumentException" error when using a non-UTF-8 machine locale and hostname
Resolution Note (2021.1.X):
The built asset bundle contains only the shader.
Change "Assets/ShadersForBundle.asset" to "Assets/ShadersForBundle.shadervariants" in BugRepro.cs