Generate a Visual Studio solution to change your build process. For example, you can modify your application’s manifest, add C++ code, modify embedded resources, or launch your application with the debugger attached.
Depending on which scripting backendA framework that powers scripting in Unity. Unity supports three different scripting backends depending on target platform: Mono, .NET and IL2CPP. Universal Windows Platform, however, supports only two: .NET and IL2CPP. More info
See in Glossary your Unity project uses, the generated solution includes a different number of projects: three for MonoA scripting backend used in Unity. More info
See in Glossary and four for IL2CPP.
When you generate a Visual Studio Solution, Unity creates the following projects:
| Project | Description |
|---|---|
| projectName (represents your project name) | This is your main project. Visual Studio builds this project into the final application executable. You are most likely to make changes here. |
|
UnityData (stored inside the projectName project) |
This project contains all the Unity-specific files you need to build your project, such as assets. |
| UnityPlayerStub | This is a stub library for UnityPlayer.dll. Unity uses this to link your executable to the UnityPlayer.dll and expose the available UnityPlayer.dll API. |
| Il2CppOutputProject (IL2CPP scripting backend only) | This project contains:
|
Visual Studio provides a variety of build configuration options. All optimization and debug references in this section refer to the Visual Studio solution only. To select your options, click on Release and choose from the drop-down menu.
| Configuration | Use | Description |
|---|---|---|
| Debug | Use the Debug configuration when debugging C++ code. |
|
| Release | Use the Release configuration to profile your game. |
|
| Master | Use the Master configuration for game submission and final testing. |
|
| MasterWithLTCG (IL2CPP only) | Use for game submission and final testing with IL2CPP. |
|