My solution to the Dev Key next Level: SceneManager.GetSceneByBuildIndex(SceneNo);

I decided you should just be able to skip any level. So, I have an int SceneNo, use the GetSceneByBuildIndex, and add one to it. Going to deal with the collision next :slight_smile:

private void DeveloperTestKeys() {
    if (Input.GetKey(KeyCode.L)) {

        SceneManager.GetSceneByBuildIndex(SceneNo);
        int nextScene = SceneNo + 1;
        SceneManager.LoadScene(nextScene);
    }
}

Privacy & Terms