modl.ai
Test multiple scenes in one build

If you want to test multiple scenes in one build on the modl.ai platform, you need tell modl:test how to load these scenes.

To do this, use your level select scene or create a scene that you can use to load other scenes. Then, add a script that can parse command line arguments.

For an example of how parse command line arguments in a script, refer to following the code snippet:

private void Awake()
{
if (Environment.CommandLine.Contains("--Level1"))
{
SceneManager.LoadScene("Level1");
}
else if (Environment.CommandLine.Contains("--Level2"))
{
SceneManager.LoadScene("Level2");
}
else if (Environment.CommandLine.Contains("--Level3"))
{
SceneManager.LoadScene("Level3");
}
}