Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Script compilation

How and in what order Unity compiles your scripts and how you can organize your scripts into assemblies.
Read time 1 minuteLast updated 7 days ago

This section contains information on how Unity compiles your scripts and in what order.

Topic

Description

Scripting back endsUnderstand the different options Unity provides for compiling and running your scripts, and how each affects your project.
Compiling with BurstUse Unity's Burst compiler to compile code on a subset of C# called High Performance C#, designed primarily to work with the job system.
Conditional compilationUse and define preprocessor directives to selectively include or exclude sections of your code for compilation.
Assembly definitionsInformation about assembly definitions, which you can use to organize the scripts in your project.
Managed code strippingUnderstand and configure managed code stripping, which removes unused code from a build and helps decrease the final build size of your application.

Additional resources