Answers for "how to load another scene in unity"

C#
2

how to change scenes in unity

SceneManager.LoadScene(scenename);
Posted by: Guest on May-27-2020
4

load another scene unity

using UnityEngine.SceneManagement;

SceneManager.LoadScene('Scene');
Posted by: Guest on February-23-2020
0

Change Level in Unity

public UnityEngine.UI.InputField sceneInputField; //Refence to your inputField

public void ChangeSceneBasedOnInputField() //Code that needs to be called
 {
      UnityEngine.SceneManagement.SceneManager.LoadScene(sceneInputField.text);  
     //This way you can type either the index of the scene or it's name
     //Will throw an error if it can`t find the scene
}
Posted by: Guest on August-11-2020

C# Answers by Framework

Browse Popular Code Answers by Language