Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Server

Uses a player build optimized to run as a headless server.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Field
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
Server = 1

Remarks

When
StandaloneBuildSubtarget.Server
is selected, Unity compiles the standalone player for each target platform as follows:
MacOS Player: Compiled as a standard console application.
Windows Player: Compiled with
/System:Console
and runs as a standard Windows console application.
Linux Player: Compiled as a standard console application.
Unity defines
UNITY_SERVER
when it compiles scripts for a dedicated server build.