暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

compilation-overview.md 1.4KB

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