Answers for "scene changer unity"

C#
6

how to switch scenes unity

SceneManager.LoadScene("MyScene");
Posted by: Guest on December-09-2019
2

loadscene unity

using UnityEngine;
using UnityEngine.SceneManagement;

public class Singleplayer : MonoBehaviour
{
    public void LoadNextLevel()
    {
    	//This will load the next scene in the buildIndex, e.g if in scene 3, go to scene 4
        SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex +1);
    }
}
Posted by: Guest on July-11-2020

C# Answers by Framework

Browse Popular Code Answers by Language