Search Issue Tracker
Fixed in 2021.3.X
Votes
0
Found in
2019.4
2020.3
2020.3.30f1
Issue ID
1423726
Regression
No
Unused shader variants are not stripped when the Addressables are built
How to reproduce:
1. Open the attached project "Addressables"
2. Click Window -> Addressables -> Groups -> Build -> New Build -> Default Build Script
3. Observe the "shader_variants.txt" file in the project folder
Expected result: There are no keywords "DYNAMICLIGHTMAP_ON", *,INSTANCING_ON,_METALLICSPECGLOSSMAP,_RIMLIGHT_OFF"
Actual result: There are keywords "DYNAMICLIGHTMAP_ON", *,INSTANCING_ON,_METALLICSPECGLOSSMAP,_RIMLIGHT_OFF"
Reproducible with: 2019.4.38f1, 2020.3.36f1
Not reproducible with: 2021.3.0f1, 2021.3.5f1, 2022.1.5f1, 2022.2.0a17
Reproducible on: Windows 11 Pro
Note: In 2019.4.38f1 only "*INSTANCING_ON,_METALLICSPECGLOSSMAP,_RIMLIGHT_OFF" exists
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
- "One or more data file missing for baking set NewScene Baking Set. Cannot load shared data." error in Player when a specific project is built
- Choosing new HDR Colour using RGB values breaks colour on Intensity Selectors
- Rendering/Decal Layer Mask options are different inside Prefab Mode and outside Prefab Mode when the project is upgraded to Unity 6
- Incorrect Realtime GI Light Probes baking when more than one Light Probe Group is used and "Baked Global Illumination" is enabled
- Hovering on the three-dot menu also highlights the tab header near it when not all tabs fit the bar
Resolution Note (fix version 2021.3):
Fixed in: 2021.3.0f1