Search Issue Tracker
Postponed in 5.6
Custom shaders are being included in the AssetBundles even if they are in the "Always Included Shader" list
1. Open User's project
2. Notice that "BundleSource/TextureCube/textured_cube" is included to "textured_cube" AssetBundle
3. Set "texture_cube/cube" material shader to "My Custom/Diffuse"
4. Add "My Custom/Diffuse" shader to "Always Include Shader" list
5. Build AssetBundles from menu bar "AssetBundles/Build bundles"
6. Open "AssetBundles/AssetBundleViewer"
7. Select "StreamingAssets/GeneratedBundles/textured_cube"
8. Double click on "My Custom/Diffuse"
9. Notice that it is Precompiled and included to AssetBundle
10. Do the same with "Standard" or other default shader
11. Notice that it is not included and Precompiled it is only referenced
Expected behaviour: All shaders are only referenced in the AssetBundles if they are included into "Always Include Shader" list.
Actual result: Custom shaders are compiled and included in the AssetBundles even if they are included into "Always Include Shader" list.
Reproduced on versions: Unity 5.5.3p2, 5.6.0f3, 5.6.0p3
Could not test on 2017 (AssetBundleViewer did not work)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
- VFX Graph not retaining reference to custom spawner
- [URP] Blend Style panel is translucent and appears to be of different colour
- ProjectFilesGenerator.ProjectFileGeneration event isn't raised
- [Asset Import] Errors thrown on creating a project using microgame templates
- A game object is instantiated in a translated transform position when it is instantiated as a child of a new parent object