https://docs.unity3d.com/ScriptReference/PlayerSettings.html
public static bool stripEngineCode;
Description
Remove unused Engine code from your build (IL2CPP-only).
If this is enabled, unused modules and classes of the Unity Engine codebase will be removed in IL2CPP builds. This will result in smaller binary size. It is recommended to use this setting, however, you may want to disable it if you suspect this causes issues with your project. Note that byte code stripping of managed assemblies is always enabled for the IL2CPP scripting backend.
Strip engine code在build setting的other setting中,勾選可以讓代碼進行壓縮,自動不打包沒有用到的代碼,比如一個2DUI遊戲沒有用到Rigidbody等物理類的組件,但是勾選這個選項後可能會導致個別項目進行到有些地方直接崩潰,使用時還請慎重考慮