Output a game for Windows

Page update date :
Page creation date :

Verification environment

Windows
  • Windows 10
  • Windows 11
Unity Editor
  • 2020.3.25f1

At first

Games created in the Unity Editor can run in the Unity Editor, but cannot run independently in other environments. This section describes how to output a game so that it runs on its own on Windows.

Since the output takes a certain amount of time, it is a good idea to do normal development and debugging in the editor, and output when you want to test in the target environment.

About the game to be output

Outputs the "2D Platformer Microgame" as a game, which can be selected when creating a new project. Of course, if you have already created a game, please output that game.

The Unity Editor is launched and your project is loaded.

Game output for Windows

Select File > Build Settings from the menu.

When the "Build Settings" dialog is displayed, check all the scenes you want to use from "Scenes included in the build".

From the platform on the left, select PC, Mac & Linux Standalone.

If there is no Unity icon to the right of the menu name, it is not active, so click the "Switch Platform" button at the bottom right with "PC, Mac..." selected.

If you select "PC, Mac...", the setting items will be displayed on the right, so set as follows.

Item setting value
Target Platform Windows
architecture Select "x86_64" for games for 64-bit OS and "x86" for games for 32-bit OS
other Unchecked

When the setting is complete, press the "Build" button to output. If you want to run it immediately after output, click the "Build and run" button.

Specifies the output destination of the program. Some files will be created in the folder, so you can select any empty folder. If an existing file with the same name exists, it will be overwritten. It will take some time to build, so wait for a while.

When the build is complete, the file is created.

You can then copy or distribute these files to other Windows environments to play your game in other environments. In the sample created this time, the game starts when you run "Platformer.exe", but this name changes depending on the project you created.

The game will work even if the following files are not included in it.

Files & Foldersdescription
UnityCrashHandler64.exe This is the executable file of the crash handler. It is feasible even if you do not have it, but you can put it in.