13 Deploying your game to players’ devices

 

This chapter covers

  • Building an application package for various platforms
  • Assigning build settings, such as the app icon or name
  • Interacting with the web page for web games
  • Developing plug-ins for apps on mobile platforms

Throughout this book, you’ve learned how to program various games within Unity, but the crucial last step has been missing so far: deploying those games to players. Until a game is playable outside the Unity editor, it’s of little interest to anyone other than the developer. Unity shines at this last step, with the ability to build applications for a huge variety of gaming platforms. This final chapter will go over how to build games for these various platforms.

When I speak of “building” for a platform, I’m referring to generating an application package that will run on that platform. On each platform (Windows, iOS, and so on) the exact form of a built application differs, but once the executable has been generated, that app package can be played without Unity and can be distributed to players. A single Unity project can be deployed to any platform without needing to be redone for each one.

13.1 Start by building for the desktop: Windows, Mac, and Linux

13.1.1 Building the application

13.1.2 Adjusting Player Settings: setting the game’s name and icon

13.1.3 Platform-dependent compilation

13.2 Building for the web

13.2.1 Building the game embedded in a web page

13.2.2 Communicating with JavaScript in the browser

13.3 Building for mobile: iOS and Android

13.3.1 Setting up the build tools

13.3.2 Texture compression

13.3.3 Developing plug-ins

13.4 Developing XR (both VR and AR)

13.4.1 Supporting Virtual Reality headsets

13.4.2 AR Foundation for mobile Augmented Reality

13.5 Summary

sitemap