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 is selected, Unity compiles the standalone player for each target platform as follows:
StandaloneBuildSubtarget.ServerMacOS Player: Compiled as a standard console application.
Windows Player: Compiled with and runs as a standard Windows console application.
/System:ConsoleLinux Player: Compiled as a standard console application.
Unity defines when it compiles scripts for a dedicated server build.
UNITY_SERVER