switching scenes

i have 2 scenes how do i switch from scene1 to scene2 please help


SceneManager.LoadScene
(buildindex); buildindex is int
SceneManager.LoadScene(sceneName): name is string
You can use it or other functions

 using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class LoadScene ()
{
    SceneManager.LoadScene;
}

i need help

Start here

1 Like
 using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class LoadScene ()
{
    SceneManager.LoadScene("NameOfYourNextSceneHere");
}