Don’t ignore the side effect of Managed code stripping

0x00 Description

After Unity 2018.3, the new Managed Stripping Level option replaces the old Stripping Level option in the player settings. This new option is available for all platforms and both Mono and IL2CPP scripting backends. The main purpose of this feature is to reduce the size of the app by removing some unused code. It sounds great, but there is a potential side effect. How does Unity know which code is unused code?

0x01 Load From Assetbundle and the script is missing

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Jiadong Chen

Jiadong Chen

Senior Software Developer at Company-X | Microsoft MVP, MCT | Member of .NET Foundation | Azure Certified Solutions Architect Expert