How to load a new level/scene in Unity

Next Story

How to access keyboard inputs/key presses in your Unity game

In Unity game engine, unless you are making a single level arcade game, there will be times where you will need to load a different level to your game.

using UnityEngine.SceneManagement;

SceneManager.LoadScene("SecondLevel");

In the above code, the new scene is loaded synchronously using the scene manager. If the new scene is complex, this loading process could take a while.

Leave a Reply

Your email address will not be published. Required fields are marked *

https://www.googletagmanager.com/gtag/js?id=UA-63695651-4