Skip to Content
Mastering UI Development with Unity
book

Mastering UI Development with Unity

by Dr. Ashley Godbold
April 2018
Beginner content levelBeginner
468 pages
11h 7m
English
Packt Publishing
Content preview from Mastering UI Development with Unity

Using Input Manager with the pause panel

Now, let's do the same thing for the Pause Panel. We'll do this slightly differently than the Inventory Panel, using the Input Manager instead of a KeyCode. We also need to actually pause the game.

To display the pause panel using the p key and pause the game, complete the following steps:

  1. First, we need to set up the Input Manager to include a Pause axis. Open the Input Manager with Edit | Project Settings | Input and expand the axes by selecting the arrow next to the word Axes.
  2. By default, your project has 18 axes. You can replace one of these with the new Pause axis if you aren't planning on using them, but we might as well just go ahead and make a new one. Definitely, don't delete the Submit
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Game Development with Unity for .NET Developers

Game Development with Unity for .NET Developers

Jiadong Chen
Unity UI Cookbook

Unity UI Cookbook

Francesco Sapio

Publisher Resources

ISBN: 9781787125520Supplemental Content