Skip to content

Commit

Permalink
fix: EdgegapPlugin Unity 2019/2020 support
Browse files Browse the repository at this point in the history
  • Loading branch information
miwarnec committed Nov 7, 2023
1 parent 1b5f963 commit 3f31cbd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Assets/Mirror/Hosting/Edgegap/Editor/EdgegapBuildUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,11 @@ public static BuildReport BuildServer()
scenes = scenes.ToArray(),
target = BuildTarget.StandaloneLinux64,
// MIRROR CHANGE
// options = BuildOptions.EnableHeadlessMode, // obsolete and missing UNITY_SERVER define
#if UNITY_2021_3_OR_NEWER
subtarget = (int)StandaloneBuildSubtarget.Server, // dedicated server with UNITY_SERVER define
#else
options = BuildOptions.EnableHeadlessMode, // obsolete and missing UNITY_SERVER define
#endif
// END MIRROR CHANGE
locationPathName = "Builds/EdgegapServer/ServerBuild"
};
Expand Down

0 comments on commit 3f31cbd

Please sign in to comment.