
Created Based on the Standard(URP), Replaced the Basement and the Sphere with my Emissive Sphere in the Game Scene. I added a title text in the canvas as the game name, and a button called “Start” to change the scene.



Visual Studio Code didn’t ask me to save the code before I closed its tab, so I didn’t know my scene change script wasn’t uploaded. Therefore no ChangeScene(string) was available under On Click(), It took me some time to realize this issue, and now I remember to always manually save the script doc before closing it.
Next, I want to add an in-game pause menu that includes a “resume button” and a “main menu button” Triggered by GetKeyDown “Escape” in the Game Scene:

To achieve this, I need to create a TextMeshPro for the text “Pause Menu”, a button for ‘Resume”, and a button for “Main Menu”. All three of them should be inactive(invisible) before I press the ESC button and call them out(active, visible)

This Script allows the call out of Resume and Main Menu when ESC is pressed in the Game Scene.


Attach Scenechange Script to Game Object ESC Menu and then link the Main Menu button to the start scene in On Click. Once the Main Menu button is clicked, unity goes back to StartScene.