Search Issue Tracker
Fixed in 2018.1.X
Fixed in 5.6.X, 2017.1.X, 2017.2.X, 2017.4.X
Won't Fix in 5.5.X
Votes
0
Found in
2017.1.0f3
Issue ID
948053
Regression
Yes
Shader with corresponding ShaderVariantCollection built as an AssetBundle and loaded in the scene loses variants
Steps to reproduce:
1) Download attached project 'ShaderVariantCollection.zip' and open in Unity
2) In the Project window, go to Assets >> ABs folder and delete all AssetBundles
3) Select 'ShaderAndMaterial' folder and in the menu items(top) select Assets >> TestAssetBundle
4) Select ABs folder and click on Select Folder button
5) In the Hierarchy window, select LoadAll gameObject and change absolute paths to Assets >> ABs filder
6) Press Play
Observe white cubes on the screen
Expected result: Loaded cubes as an assetBundle with ShaderVariantCollection should be in red color (check attached image 'expectedColor.png')
Actual result: Cubes are white because their loses variants (check attached image 'lostVariants.png')
Reproduced with:
2017.1.0a1, 2017.1.1f1, 2017.2.0b10, 2017.3.0a7
Not reproduced with:
5.6.3p2
Regression since:
2017.1.0a1
Note: Video of reproduction is attached
-----------------------------------------------------------
Fixed in: 2018.1.0a1, 2017.4.0f1, 2017.3.0b6, 2017.2.0p1
Comments (2)
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
- Shader Graph skybox material is rendered inccorrectly in builds when "Allow Material Override" or "Cast Shadows" are enabled and the "Deferred" Rendering Path is used
- Object motion is affected by incorrectly added rotation motion when importing animations
- Base class's Context Menu method is called when calling it in the Editor from the child class and the child class overrides this method
- Editor crashes with prompt "The file 'MemoryStream' is corrupted! Remove it and launch unity again! [Position out of bounds!]" when adding a serialized field to a precompiled DLL
- Android Player freezes waiting for a texture upload when AssetBundle.LoadFromFile is used
Eminemstan
Nov 15, 2018 12:40
I'm having a similar problem.Some variants will not be collected by ShaderVariantCollection,like a pass that be called by other shader .
andysaia
Oct 22, 2018 19:09
I'm having a similar problem is this fix suppose to be in the 2017.3.1p1 release?