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

Dialog location, animation, and speed


Now that we have a framework for the separation of GUI dialog content from GUI dialog control, we need to look at the things we want to accomplish with our GUI dialog wrapper.

The following are the things that we want to create:

  • Dialogs that can be located on the screen in a resolution-independent manner

  • Dialogs that can slide onto the screen and off the screen

  • Dialogs that can fade in and out

  • Dialogs that move at different speeds

Dialog location

Before we can talk about where to put our dialog on the screen, we need to know how big the dialog is going to be. It simply would not make sense to put a dialog that is three fourth the width of the screen, and position it in a way that leaves part of the dialog content clipped.

So, the very first thing we need to decide is the size of the dialog, not in pixels, but as a ratio of...