A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.unity3d.com/Manual/managed-code-stripping.html below:

Unity - Manual: Managed code stripping

Assembly Definition File Format reference

Managed code stripping and the Unity linker

Managed code stripping

During the build process, Unity removes unused or unreachable code through a process called managed code stripping, which can significantly decrease your application’s final size. Managed code stripping removes code from managed assemblies, including assemblies built from the C# scriptsA piece of code that allows you to create your own Components, trigger game events, modify Component properties over time and respond to user input in any way you like. More info
See in Glossary
in your project, assemblies that are part of packages and plugins, and assemblies in .NET Framework.

Unity uses a tool called the Unity linker to perform a static analysis of the code in your project’s assemblies. The static analysis identifies any classes, portions of classes, functions, or portions of functions that can’t be reached during execution. This analysis only includes code that exists at build time because code generated at runtime doesn’t exist when Unity performs the static analysis.

You can configure the level of code stripping Unity performs for your project in the Unity Editor. You can also provide annotations in the form of attributes or a special XML configuration file to instruct the Unity linker about which parts of your code base to preserve.

Additional resources

Assembly Definition File Format reference

Managed code stripping and the Unity linker


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4