Search Issue Tracker
Fixed in 5.6.0
Votes
2
Found in
5.4.1p3
Issue ID
840600
Regression
No
Shaders with variants get lost when sharing asset bundles during runtime
Steps to reproduce:
1. Download and open attached project
2. Open scene "AssetLoader"
3. Run Assets-->AssetBundles-->Build AssetBundles
4. Select Assets-->AssetBundles-->Simulation mode
5. Hit play
6. See blue and red squares
7. Stop playing
8. Unselect Assets-->AssetBundles-->Simulation mode
9. Select Assets-->AssetBundles-->Local AssetBundle Server
10. Hit play
Video in edit
Expected result: 1 blue and 1 red square
Actual result: 2 red squares
Reproduced on: 5.2.3f1, 5.3.6f1, 5.4.1p3, 5.4.2f1, 5.5.0a1
Note: 5.5.0a1+, 5.3- shaders gets lost entirely(squares end up as pink during runtime)
Note: User notes that changing shader_feature to multi_compile in ShaderWithVarients fixes this problem, but makes too many possible shader configurations in his regular project. I was unable to replicate this behaviour
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Shadows are not cast when you first Blit the Shadow map and then set it back to Buffer
- Changes to instanced detail mesh material don't immediately apply
- [uGUI] Vertices retrieved from GetUIVertexStream method cannot be modified when adjusting them through script
- Scroll bar scrolls less in the Package Manager packages than elsewhere when pressing on the empty scroll bar area to scroll
- Undo.RegisterCreatedObjectUndo dirties the scene, but no actual changes to Scene are made
Add comment