Congratulations screen

If we play the entire game and manage to beat it, we will go back to the beginning and the game will start again. With all we now know, we are going to create our congratulations screen on a new scene.

Just as we did for our own main menu, we will create a new empty scene called Congratulations:

After that, we are going to create a new canvas and a Text Mesh Pro object with the word Congratulations in it. Remember to follow the same procedure that we followed in the last chapter. Choose the font, color, and size we desire.

Next, click on the main camera and change the clear flags to Solid Color. Then click on the color ...

Get Hands-On Game Development without Coding now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.