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 devicesTesting 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...