Legacy Documentation: Version 5.6 (Go to current version)
IL2CPP
Compiler options
Other Versions

Building a project using IL2CPP

To build your project using IL2CPP, open the Build Settings window (File > Build Settings). Select the platform you are building for, then click Player Settings… to open the PlayerSettings window in the Inspector.

The Build Settings window
The Build Settings window

In the PlayerSettings window for your target platform, scroll down to the Configuration section. For Scripting Backend, select IL2CPP.

The Configuration section of the PlayerSettings window
The Configuration section of the PlayerSettings window

With IL2CPP selected as the Scripting back end, click Build in the Build Settings window. Unity begins the process of converting your C# code and assemblies into C++ before producing a binary file for your target platform.

IL2CPP
Compiler options
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961