
Within my project there are different scenes, that could be the main menu screen, play event or or a popup button. These scenes can be changed by providing a button that will trigger this transition. In this scenario, I have created button ‘Play’ on scene 1 that will direct to scene 2.
The next step is to create a script that will allow the button act accordingly to change the scenes. The name of this script in specific is called ‘Loadscene’ with a simple code in the picture below.

Going back to Unity, within the button that is assigned to change scenes do Add Component and search event trigger.


Once clicking ‘Add New Event Type’, I would recommend in using ‘pointer up’. Before adding anything else, refer back to the Hierarchy and add a new Game Object. Which in this case, I have named ‘SceneManager’ in which I have assigned the previous script. The SceneManager will be dragged and drop towards the Event Trigger within the button earlier.

Under ‘No Function’, select Loadscene>SceneLoader (int). Since I have applied the need of an integer, the purpose of this is to make each scene unique by naming each of them different numbers.

The following process will be done to scene 2 but it should be changed towards number “2”. Do be reminded to insert all of the scenes to the build settings when it is time to test the project out.
In conclusion, there should not be any problems regarding to the project. No challenges were faced either.