Legacy Documentation: Version 5.6 (Go to current version)
Windows Store: IL2CPP scripting back end
Windows Store: Plugins on IL2CPP Scripting Backend
Other Versions

Windows Store: Generated project with IL2CPP scripting backend

Building a project from Unity to Windows Store platform with IL2CPP scripting backend will create a Visual Studio C++ solution containing three projects:

Figure 1. Generated Visual Studio solution
Figure 1. Generated Visual Studio solution

These projects serve their own purposes:

  1. Il2CppOutputProject contains generated C++ code that was converted from managed assemblies. This project gets overwritten every time when built over it. See figure 2.
  2. Unity Data project contains all Unity data files: levels, assets, etc. This project gets overwrriten every time as well.
  3. The main project (it name matches your Unity project name). This is the project that will be built into an application package, which may be deployed to a device or uploaded to the Windows Store. Unity will not overwrite this project when built on top of it, so it can be modified freely without the fear of changes becoming lost.
Figure 2. Il2CppOutputProject
Figure 2. Il2CppOutputProject

When using .NET scripting backend, the generated project is using C#, however, this scenario is unsupported when using IL2CPP scripting backend.

Configurations

Generated Visual Studio projects have three configurations: Debug, Release and Master:

  • Debug configuration has all optimizations disabled, all debugging info preserved and runs much slower. It is used for debugging your game.
  • Release configuration enables most code optimizations, but leaves profiler enabled. This configuration is used for profiling your game.
  • Master configuration disables the profiler, and is used for game submission/final testing. The build time of Master configuration is much longer, however, it is a little bit faster than Release configuration.
Windows Store: IL2CPP scripting back end
Windows Store: Plugins on IL2CPP Scripting Backend
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961