# Server

> Uses a player build optimized to run as a headless server.

## Definition

* **Type:** Field
* **Namespace:** [UnityEditor](/engine/6000.7/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
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.
