Rasagar/Library/PackageCache/com.unity.burst/Documentation~/compilation-overview.md
2024-08-26 23:07:20 +03:00

1.4 KiB

Compilation overview

Burst compiles your code in different ways depending on its context.

Just-in-time compilation

While your application is in Play mode in the Editor, Burst compiles your code asynchronously at the point that Unity uses it. This means that your code runs under the default Mono compiler until Burst completes its work in the background.

To force Unity to compile your code synchronously while in the Editor, see Synchronous compilation

Ahead-of-time compilation

When you build your project, Burst compiles all the supported code ahead-of-time (AOT) into a native library which Unity ships with your application. To control how Burst compiles AOT, use the Player Settings window. Depending on the platform you want to build for, AOT compilation might require access to linker tools. For more information, see Building your project.

Further resources