Version: 2023.1
LanguageEnglish
  • C#

StandaloneBuildSubtarget.Server

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

Build a player that is optimized for running as a headless server.

He 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.