fix(EdgegapHosting): only include enabled scenes in build (#3798)

* fix(EdgegapHosting): only include enabled scenes in build

* syntax
This commit is contained in:
mischa 2024-04-02 16:23:51 +08:00 committed by GitHub
parent 37db5037cd
commit 83d652c7f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -22,7 +22,12 @@ public static bool IsArmCPU() =>
public static BuildReport BuildServer() public static BuildReport BuildServer()
{ {
IEnumerable<string> scenes = EditorBuildSettings.scenes.Select(s=>s.path); // MIRROR CHANGE: only include scenes which are enabled
IEnumerable<string> scenes = EditorBuildSettings.scenes
.Where(s => s.enabled)
.Select(s => s.path);
// END MIRROR CHANGE
BuildPlayerOptions options = new BuildPlayerOptions BuildPlayerOptions options = new BuildPlayerOptions
{ {
scenes = scenes.ToArray(), scenes = scenes.ToArray(),