Code.docx -...

This preview shows page 1 - 3 out of 3 pages.

SceneManager.LoadScene(SceneManager.GetActiveScene(). buildIndex + 1);This Function uses the Unity.Engine. SceneManagement library, when the game loadsthe user will be introduced to a menu the top button is a “PLAY” button. Once thebutton is pressed by the user it refers to this script which manages loading the next scene. So now Unity refers to buildIndex, this is a manager which take caresof the scenes of that particular project it also handles the exporting part of the project. SceneManager.Loadscene is a function that loads scenes. This function refers to SceneManager.GetActiveScene().buildIndex + 1, this piece of code refers to the active scenes in unity and increments the buildIndex by 1. TheMain screen is set to 0 and the game scene is set 1, so once the button is

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture