기술 자료

Unity Engine

Unity Engine

Server

Uses a player build optimized to run as a headless server.
읽는 시간 1분최근 업데이트: 한 달 전

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.