Pausing the game

Now that we have started on our main menu, let's add some additional GUI functionality to our game, adding in the ability to pause our game and restart it. However, before we do that, let's take a look at some stuff we can do to make our lives easier when it comes to customization:

  1. We also want to make these buttons have the same appearance as the stuff we've done previously. However, instead of having to set these properties every single time, we can use something called a GUISkin to change what the default controls will appear like by setting the GUI.skin property to a new one.
  2. Create a GUISkin by navigating to Project | Create | GUI Skin, and rename the skin to GUISkin. Open up the Button tab, and you should notice it looks exactly ...

Get Unity Game Development Blueprints 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.