Configure Dedicated server Build Target

The Dedicated server is a specialized desktop sub target that removes unnecessary assets and code during the build process to optimizes server build efficiency. This results in reduced build size and improved processing efficiency, which benefits server operators because it lowers operating costs when running Unity server applications.

Prerequisites

The Dedicated server build target is available in Unity version 2021.3 and above. Ensure that you set your project to this version or later.

Configure the Dedicated server Build Target

  1. Go to DevOps > Build automation > Configurations and select Target setup to set up a new build configuration.
  2. Select a desktop platform (Windows, Linux, or macOS) as the target.
  3. Navigate to the Advanced settings.
  4. Enable Dedicated server:
    1. Under the Build output section, locate the Enable dedicated server checkbox.
    2. Select the checkbox to Enable dedicated server to configure the target for Dedicated Server optimization.
  5. Set any other configurations as necessary and select Save configuration to apply these settings to your build configuration.

A screenshot of the configuration window for a Dedicated Server Build Target.