Unity Issue Tracker - AssetBundles API doesn't trigger a rebuild when the Graphics Settings in the Project Settings are changed
Fixed
UUM-48757
AssetBundles API doesn't trigger a rebuild when the Graphics Settings in the Project Settings are changed
Unity: Asset Bundles
Fixed
2023.3.X
Won't Fix
2023.2.X
2023.1.X
2022.3.X
2021.3.X
Fixed issue where AssetBundles aren't rebuilt when the "BatchRendererGroup Variants" shader stripping setting is changed.
No fix planned for this Unity version. The fix will require all AssetBundles in an existing project to be rebuilt.
This Unity version will no longer be receiving patch updates.
No fix planned for this Unity version. The fix will require all AssetBundles in an existing project to be rebuilt.
No fix planned for this Unity version. The fix will require all AssetBundles in an existing project to be rebuilt.
Reproduction steps:
1. Open the attached “Repro.zip” project
2. Set the “BatchRendererGroup Variants” field to “Strip All” located in the Project Settings window under Graphics (Edit > Project Settings > Graphics > Shader Stripping)
3. Select the “Build Asset Bundle” option located under the “Assets” category in the Menu Bar
4. Observe the “Asset/AssetBundle/test” Asset Bundle’s modified date using File Explorer
5. Set the “BatchRendererGroup Variants” field to “Keep All” located in the Project Settings window under Graphics (Edit > Project Settings > Graphics > Shader Stripping)
6. Select the “Build Asset Bundle” option located under the “Assets” category in the Menu Bar
7. Observe the “Asset/AssetBundle/test” Asset Bundle’s modified date using File Explorer
Expected result: The Asset Bundle is rebuilt and the file’s modified date reflects it
Actual result: The Asset Bundle hasn’t been rebuilt and the file’s modified date shows an old date