Book Image

Unity 2020 Mobile Game Development - Second Edition

By : John P. Doran
Book Image

Unity 2020 Mobile Game Development - Second Edition

By: John P. Doran

Overview of this book

Unity 2020 brings a lot of new features that can be harnessed for building powerful games for popular mobile platforms. This updated second edition delves into Unity development, covering the new features of Unity, modern development practices, and augmented reality (AR) for creating an immersive mobile experience. The book takes a step-by-step approach to building an endless runner game using Unity to help you learn the concepts of mobile game development. This new edition also covers AR features and explains how to implement them using ARCore and ARKit with Unity. The book explores the new mobile notification package and helps you add notifications for your games. You’ll learn how to add touch gestures and design UI elements that can be used in both landscape and portrait modes at different resolutions. The book then covers the best ways to monetize your games using Unity Ads and in-app purchases before you learn how to integrate your game with various social networks. Next, using Unity’s analytics tools, you’ll enhance your game by gaining insights into how players like and use your game. Finally, you’ll take your games into the real world by implementing AR capabilities and publishing them on both Android and iOS app stores. By the end of this book, you will have learned Unity tools and techniques and be able to use them to build robust cross-platform mobile games.
Table of Contents (14 chapters)

Technical requirements

This book utilizes Unity 2020.1.0f1 and Unity Hub 2.3.1, but the steps should work with minimal changes in future versions of the editor. If you would like to download the exact version used in this book, and there is a new version out, you can visit Unity's download archive at https://unity3d.com/get-unity/download/archive. You can also find the system requirements for Unity at https://docs.unity3d.com/2020.1/Documentation/Manual/system-requirements.html in the Unity Editor system requirements section.

If you wish to deploy to an Android device, you can use Mac, Linux, or Windows, and depending on the features you wish to use, it is possible to export your game in such a way to run apps on Android 4.4 KitKat and above.

For more information on the different types of Android versions that are supported, check out https://docs.unity3d.com/ScriptReference/AndroidSdkVersions.html.

To develop for an iOS device, in addition to the device itself, you'll also need to do some work on a Mac computer that runs OS X 10.11 or a later version. I'll be using 10.14.5 macOS Mojave. If you do not have one, it is possible to develop your game using Windows and, when you want to publish the game, bring your project to a Mac to do the final export.

There are some other potential ways to build iOS apps using Windows but they are not within the scope of this book. One possible option is to use Unity's Cloud Build service, which will automatically create versions of your game; however, at the time of writing, it is $9.00 a month. For more information, check out https://unity3d.com/unity/features/cloud-build.

Another potential option would be to rent a Mac via the cloud to do the building yourself. For more information on that and other potential options, check out https://mindster.com/how-develop-ios-apps-windows/.

You can find the code files present in this chapter on GitHub at https://github.com/PacktPublishing/Unity-2020-Mobile-Game-Development-Second-Edition/tree/master/Chapter%2002/Export.