Version: 2019.2
LanguageEnglish
  • C#

BuildOptions.EnableHeadlessMode

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Options for building the standalone player in headless mode.

The application output compiles the standalone player based on the following target platforms:

Mac player: Compiled as a standard console application.

Win Player: Compiled with /System:Console and runs as a standard windows console application.

Linux player: Compiled as a standard console application.

UNITY_SERVER will be defined when building managed assemblies.