Search Issue Tracker
By Design
Unknown (hidden) 2020.3.X, 2021.3.X, 2022.1.X, 2022.2.X
Votes
0
Found in
2020.3.35f1
2021.3.3f1
2022.1.3f1
2022.2.0a13
Issue ID
UUM-635
Regression
No
Files from unused packages are not stripped from the build
Reproduction steps:
1. Open the user's attached project "Minimal Build Stripping.zip"
2. Build the project
3. Observe the Build Report in the Editor.log
Expected result: Files from packages that are not used are not included in the build
Actual result: Files from packages such as uGUI, Visual Scripting and Test Framework are included even though they are not used
Reproducible with: 2019.4.37f1, 2020.3.33f1, 2021.3.0f1, 2022.1.0b15, 2022.2.0a10
Note: Reproducible with different build targets
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
- Channel remapping dropdown in the Terrain Layer does not open when clicked on the title
- The Editor freezes indefinitely when a large number of elements are entered in the Subgraphs or Categories lists
- Some Visual Effects package Assets links to documentation are not working
- Heatmap asset’s documentation button in the Inspector window leads to “Sorry... that page seems to be missing!” page when clicked
- Crash on MonoBehaviour::CallMethodIfAvailable when performing various actions
Resolution Note:
The build picks up dependencies based on the Scenes/Assets being built in the user project and also packages that are in use. Packages sometimes add dependencies via Resource folders. In testing this provided project in a recent build of Unity I observed the same "Debug" assets that are mentioned in https://forum.unity.com/threads/legacy-ui.1229454. These come from the Core RP project and are currently expected in the build to support the RenderingDebugging feature. The team is aware of the need to remove that forced inclusion in a future version. In general we will continue to work to keep package dependencies modest. In cases where there is some apparent bug that is bringing in extra unnecessary dependencies we will appreciate further bug reports. If the bug report is focused on specific objects then we would be able to turn it into an trackable and actionable bug fix.