Search Issue Tracker
Postponed means that the issue was either a feature request or something that requires major refactoring on our side. Since that makes the issue not actionable in the close future we choose to close it as Postponed and add it on our internal roadmaps and technical debt pages instead.
Postponed
Votes
4
Found in [Package]
1.1.0-pre.5
Issue ID
1340958
Regression
No
[IL2CPP] Including the Input System package in project significantly adds to build sizes
Reproduction steps:
1. Open attached project "OptimizeForWebGL.zip"
2. Build with Input System package and note build folder size
3. Build without Input System package and note build folder size
4. Compare the two build folder sizes
Expected result: The size difference between the two builds is negligible (~3mb)
Actual result: The size difference between the two builds is significant (~160mb)
Reproducible with: 0.2.1-preview (2018.4.35f1), 1.1.0-pre.5 (2019.4.28f1, 2020.3.12f1, 2021.1.12f1, 2021.2.0a20)
Note:
Issue does not reproduce with - Windows platform with Mono scripting backend, WebGL platform.
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
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
Resolution Note:
The changes necessary to address this issue are API breaking changes (removing Preserve attributes on lots of types and changing the layout system so it doesn't have to rely on reflection) so they will have to be made as part of a v2. Note though that the size difference as reported in the issue most likely includes the '[...]_BackUpThisFolder_ButDontShipItWithYourGame' folders. When those folders are removed, the difference is 49MB vs 43MB (with low stripping) for the Windows build, with and without the input system, so not as extreme as in the issue but should still be addressed.