ドキュメント

Unity Engine

Unity Engine

Generate a Visual Studio Solution for Windows

Learn how to create a Visual Studio solution for Windows from Unity.
読み終わるまでの所要時間 1 分最終更新 20日前

Follow these instructions to create a Visual Studio solution for Windows from Unity.
The Create Visual Studio Solution Build Setting makes Unity generate a Visual Studio solution instead of building a Player.

Prerequisites

  • You must use the Windows build target.
  • If you use the IL2CPP scripting back-end, you must build on a Windows machine.

Generate the solution

注意
Make sure you save and back up any changes you make in Visual Studio before you rebuild your Unity project. Unity overwrites unsaved changes during the build process, except for the
AppxManifest.xml
file.
To create a Visual Studio Solution:
  1. Go to File > Build Profiles.
  2. From the list of platforms in the Platforms panel, select Windows or create a build profile for the Windows platform.
  3. In the Platform Settings (Windows) section, enable Create Visual Studio Solution.
  4. Select Build to generate the solution.
By default, Unity stores the Visual Studio solution file you generate in the same directory as your built project.
For information about the projects included in your generated solution and the available build configurations, refer to Visual Studio solution contents and configurations for Windows.

Additional resources