Answers for "load scene on click unity"

C#
4

load scene unity

using UnityEngine.SceneManagement


public class LoadScene : MonoBehavior
{
	public string sceneToLoad = "Level2";
    
    public void Start()
    {
    	SceneManager.LoadScene(sceneToLoad);
    }
}
Posted by: Guest on June-22-2020
2

how to open new scene in unity click button

using UnityEngine.SceneManager;  void OnMouseUp() {     SceneManager.LoadScene("SceneName", LoadSceneMode.single); }
Posted by: Guest on November-30-2020

C# Answers by Framework

Browse Popular Code Answers by Language