How to configure the project, If I have multiple scenes ?
Closed this issue · 2 comments
Jornason commented
It works in single scene,
How to configure the project, If I have multiple scenes? Like specify the scenes order...
f111fei commented
You can send messages to Unity to switch the scene.
Jornason commented
Thanks for reply, I've found the following code:
static string[] GetEnabledScenes()
{
var scenes = EditorBuildSettings.scenes
.Where(s => s.enabled)
.Select(s => s.path)
.ToArray();
return scenes;
}
Like normal "Build Settings" configuration, I can select enabled scenes and switch them via messages.