how to go to another scene in unity code example
Example 1: how do you switch scenes unity
using UnityEngine.SceneManagement;
SceneManager.LoadScene('Scene');
Example 2: move to another scene unity
using UnityEngine.SceneManagement;
void Start(){
SceneManager.LoadScene(0/* the scene number*/);
}
Example 3: change scene unity
SceneManager.LoadScene (sceneBuildIndex:/*Put the number here*/);