diff --git a/Assets/Mirror/Hosting/Edgegap/Editor/EdgegapBuildUtils.cs b/Assets/Mirror/Hosting/Edgegap/Editor/EdgegapBuildUtils.cs index 50d814ab9..9e6db124d 100755 --- a/Assets/Mirror/Hosting/Edgegap/Editor/EdgegapBuildUtils.cs +++ b/Assets/Mirror/Hosting/Edgegap/Editor/EdgegapBuildUtils.cs @@ -22,7 +22,12 @@ public static bool IsArmCPU() => public static BuildReport BuildServer() { - IEnumerable scenes = EditorBuildSettings.scenes.Select(s=>s.path); + // MIRROR CHANGE: only include scenes which are enabled + IEnumerable scenes = EditorBuildSettings.scenes + .Where(s => s.enabled) + .Select(s => s.path); + // END MIRROR CHANGE + BuildPlayerOptions options = new BuildPlayerOptions { scenes = scenes.ToArray(),