Change Level in Unity

        SceneManager.LoadScene(scenename);

3.67
3
Awgiedawgie 440220 points

                                    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
} 

3.67 (3 Votes)
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
how to change scenes on collision unity how to switch scenes with a script in unity change scenes with script unity how to change between scenes unity Unity change level change level unity Code to switch scenes in unity how to switch scenes in unity c# how do you you chang scenes unity how to switch scenes in unity how to switch between scenes in unity How to switch scenes in Unity. unity change between scenes how to change scenes in 3d Unity change levels unity unity changing level unity change scenes script unity switch scenes via script switch scenes script unity how to load to other scene in unity c# unity switch to scene How to change what scene an object is in unity unity load scene additive changing scenes in unity how to change layer level unity unity 2018 load new scene unity how to switch scenes unity change scene on trigger unity change scenes unity switching scenes uNITY CHANGING SCEAN how to change scene unity How to change scenes in a script unity different methods of loading level unity go form scene to scen in unity unity 3d change scenes scene by name how to change scene in unity using script Unity load level unity level loader unity how to change the scene in script how to change scene in unity unity changescenes how to switch scenes using script unity unity switcch scvene how to load another scene in unity unity how to load level with numer how to switch scenes in unity script how to change scene through code in unity scene change unity c# script Change Level in Unity switch scenes in script unityu how to switch scenes in unity on trigger unity how to change scene how to load your scene unity change scenes unity scene change unity scene change script unity change scene in unity load specific scene unity unity change scene scene manager unity how to change the scene in unity unity change scene through code change scene unity script change scenes in unity change scenes in c# how to change scene with script unity unity start new scene cant see scene in game view unity 2d use a common scene for UI across multiple unity scenes how to change scene in unity in script how to change scenes in unity
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source