Book Image

Unity iOS Essentials

By : Robert Wiebe US
Book Image

Unity iOS Essentials

By: Robert Wiebe US

Overview of this book

<p>Unity is the perfect tool for creating games for a number of platforms. Whether it&rsquo;s for the iPhone, iPod Touch, iPad, or some combination of the three, this book takes a practical approach which maximizes performance while maintaining maximum compatibility across the entire mobile device line up.<br /><br />Unity iOS Essentials takes you through all aspects of Unity 3D game development for iOS. Mobile game development means thinking about mobile performance, multiple device screen resolutions, deploying a single application to multiple devices, understanding .NET integration, taking advantage of advanced lighting and culling systems, and integrating a mobile game with a server back end. This comprehensive book on developing Unity 3D games for iOS covers it all and demonstrates the concepts using practical tips, scripts, shaders, and projects.<br /><br />Learn how to plan for supporting multiple iOS devices before you start writing your first script. Consider performance and advanced game topics that will speed up your game development while solving real world problems. Add GUIs, use sophisticated .NET programming concepts, and examine scripts and shaders, interact with servers, and interact with projects that deal with real issues. Unity iOS Essentials provides you with a fully illustrated and fully commented guide for realising your game idea using advanced concepts that work on the iOS family of mobile devices.</p>
Table of Contents (15 chapters)
Unity iOS Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface

Ending or suspending the game under multitasking


When the Home button is pressed on an iOS device, the application will either end or suspend. Which event occurs, depends on a Player Settings item in the Other Settings section, which is aptly titled Exit on Suspend, as shown in the following screenshot:

Note

On iOS devices that do not support multitasking, the application will always exit when the Home button is pressed.

As game developers, we may need to decide if we want our game to end or suspend.

There is a better alternative, which is to let the game player decide if the game should end or suspend when the Home button is pressed.

If we choose to let the player decide, then we need to set the Boolean variable PlayerSettings.iOS.exitOnSuspend based on the player's selection from a preference dialog.

However,...