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

Pausing the game

The game doesn't actually pause right now. If we had animations or events running in the scene, they would continue to run even with the pause panel up. There is a really quick way to pause a game and that is by manipulating the time scale of the game. If the time scale is set to 1, time will run as it normally does. If the time scale is set to 0, the time within the game will pause.

Also, our current setup doesn't quite work, as a pause menu would be expected. Inventory Panel and Pause Panel can be displayed at the same time. If Inventory Panel is up, the Pause Panel is covered up by it, since it is rendering behind it. Also, the Inventory Panel can be activated when the game is "paused".

We'll need to pause the time scale ...

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