Book Image

Unity 2017 Mobile Game Development

By : John P. Doran
Book Image

Unity 2017 Mobile Game Development

By: John P. Doran

Overview of this book

Unity has established itself as an overpowering force for developing mobile games. If you love mobile games and want to learn how to make them but have no idea where to begin, then this book is just what you need. This book takes a clear, step-by-step approach to building an endless runner game using Unity with plenty of examples on how to create a game that is uniquely your own. Starting from scratch, you will build, set up, and deploy a simple game to a mobile device. You will learn to add touch gestures and design UI elements that can be used in both landscape and portrait mode at different resolutions. You will explore the best ways to monetize your game projects using Unity Ads and in-app purchases before you share your game information on social networks. Next, using Unity’s analytics tools you will be able to make your game better by gaining insights into how players like and use your game. Finally, you’ll learn how to publish your game on the iOS and Android App Stores for the world to see and play along.
Table of Contents (11 chapters)

Setting up analytics

Although we activated Analytics in order to use Unity's Ads system, we didn't really dig into the system itself. Let's finish the setup for that now:

  1. From the Unity Editor, open the Services tab (shown in the top-right side of the next screenshot) by either selecting it or going to Window | Services.
  2. From there, scroll down and click on the Analytics button:

As long as Analytics is enabled, the Editor sends an App Start event to the Analytics service when we press the Play button to start the game.

The nice thing about this is we can ensure that this works correctly without having to export our game.

  1. Press the Play button on the game, then go ahead and scroll down on the Analytics tab; you'll note a new menu called Validator, which shows the events being sent to Unity's analytics tool:

If you are not able to view anything, ensure...