switch scene with code unity code example Example: how do you switch scenes unity using UnityEngine.SceneManagement; SceneManager.LoadScene('Scene');