Search Issue Tracker
By Design
Votes
0
Found in [Package]
1.5.0
Issue ID
1166625
Regression
No
Unneeded shader variants are added to the bundle when using Scriptable Build Pipeline
Building asset bundles with the Scriptable Build Pipeline includes more shader variants than required
How to reproduce:
1. Open the attached project ("case_1166625-SBP_Test.zip")
2. Build asset bundles through the "Test" tab
3. Compare the sizes of the bundles
4. Check the editor logs to see how many shader variants were included in the bundles
Expected results: Scriptable Build Pipeline bundles have the same amount of shader variants as the build pipeline bundle
Actual results: Scriptable Build Pipeline bundles have more unneeded shader variants, thus being bigger in size
Reproducible with: 2018.4.3f1, 2019.1.9f1, 2019.2.0b8, 2019.3.0a8
Reproducible with package versions: 1.3.5, 1.5.0
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
- Joint Physics result in unexpected behaviors when used for articulated vehicles like buses or trucks
- Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
- IndexOutOfRangeException and InvalidOperationException when logging XML string
- Script missing in "Assets/Settings/Mobile_Renderer/GlobalVolumeFeature" of "com.unity.template.urp-blank" template
- “Font Asset Creator - Error Code [Invalid_File_Structure]…“ error is logged when generating Font Assets from fonts which worked with TMP Font Asset Creator
Resolution Note:
In this case, the old building method was not able to detect some shader variants being used in other bundles and would strip them, even if they were required.