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



Found in


Issue ID




Shader with corresponding ShaderVariantCollection built as an AssetBundle and loaded in the scene loses variants



Steps to reproduce:

1) Download attached project '' 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:

Regression since:

Note: Video of reproduction is attached
Fixed in: 2018.1.0a1, 2017.4.0f1, 2017.3.0b6, 2017.2.0p1

Comments (2)

  1. 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 .

  2. andysaia

    Oct 22, 2018 19:09

    I'm having a similar problem is this fix suppose to be in the 2017.3.1p1 release?

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.