Book Image

Learning NGUI for Unity

By : Charles Bernardoff (EURO)
Book Image

Learning NGUI for Unity

By: Charles Bernardoff (EURO)

Overview of this book

Table of Contents (17 chapters)
Learning NGUI for Unity
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 8. Going Mobile

In this chapter, we will switch to the Android platform and see how we can deal with various issues that appear. We'll build an .apk package, test it, and state issues before we correct them one by one.

Once these issues are corrected, we'll add a touch and hold feature that will replace the right-click to display the elemental switch UI on power sources.

Finally, we'll add an in-game user interface customization system, letting the player move the in-game UI elements around the screen and place them as he wishes.

In this chapter, we will discuss the following topics:

  • Platform switching to Android

  • Building the .apk package for Android devices

  • Testing it on a device

  • Correcting mobile-specific issues

  • Creating a touch-and-hold system

  • Making the user interface customizable with draggable UI elements

  • Using Unity's Profiler

  • Using the Unity Remote app to avoid rebuilding after each modification

  • Retrieving debug logs and errors from the device

By the end of this chapter, you'll know how...