Book Image

Unity 2022 Mobile Game Development - Third Edition

By : John P. Doran
Book Image

Unity 2022 Mobile Game Development - Third Edition

By: John P. Doran

Overview of this book

Unity is a well-established player in the mobile game development sphere, and its new release, Unity 2022, is packed with new, exciting features. In Unity 2022 Mobile Game Development, Third Edition, you'll get to grips with the Unity game engine by building a mobile game and publishing it on the most popular mobile app stores as well as exploring the all-new features. This book provides a comprehensive and practical approach to mobile game development, helping you build an endless runner game. Starting with setting up a simple Unity project for mobile development, you’ll delve into various essential aspects needed to successfully create and publish your game. You’ll acquire a range of skills, such as incorporating touch gestures, monetizing your game with Unity Ads and in-app purchases, designing an intuitive UI, and seamlessly integrating social media functionalities. Additionally, you’ll gain valuable insights into player preferences and behavior using Unity's analytics tools. You’ll also explore features of augmented reality in Unity 2022, enhancing your game's appeal. By the end of this book, you’ll be well-equipped to reap the power of Unity 2022 to build, optimize, and publish robust cross-platform mobile games with C#, as well as widening your skill set and enhancing your credentials as a game developer.
Table of Contents (21 chapters)
1
Part 1: Gameplay/Development Setup
4
Part 2: Mobile-Specific Features
11
Part 3: Game Feel/Polish

Building a project for a PC

By default, our platform is set to Windows, Mac, Linux. Just to verify that everything is working correctly, let’s go ahead and get the game working on our own platform before moving to mobile:

  1. To get started, we will select the Build option. In my case, I’ll be exporting the project to Windows, but the process is similar for macOS and Linux.
  2. Once this is done, a window will pop up asking for a name and a location to put the game in. I’m going to create a new Export folder located in the same folder that contains Assets and Library, so it won’t show up in the Project window, but it will be in the same folder as my project:
Figure 2.4 – The Export folder

Figure 2.4 – The Export folder

  1. Click on Select Folder and wait for it to finish. Once it’s done, a window should appear as follows:
Figure 2.5 – Folder created

Figure 2.5 – Folder created

We have the executable, but we also have a...