Google 致力于为黑人社区推动种族平等。查看具体举措

Build your game in Unity

Unity is a cross-platform game engine used by many games on the Google Play Store. Unity’s modular tools help you produce and deliver highly engaging 2D or 3D mobile games.

Steps to create a Unity game for Android

To use Unity to create a game experience for players on Android, follow these steps:

  1. Download and install the Unity Hub.
  2. Start the Unity Hub. On the Installs tab, add a version of the Unity Editor that supports 64-bit apps. Note that these versions support Android App Bundles, which enable smaller, more optimized downloads.

    Add an editor in the Unity Hub

  3. During the installation of the Unity Editor, make sure to include the Android Build Support module by checking the box next to it.

  4. Expand the Android Build Support module. If you are using Unity 2019 or later, add the Android SDK & NDK Tools module.

    Add the Android Build Support NDK option in the Unity Hub

  5. On the Projects tab, click New to start a new Unity project.

    Start a new project

  6. (Recommended) Import Google-authored plugins into your project: download the Google Play Plugins for Unity project as a single plugin.

  7. Develop your game!

  8. Change build settings to output 64-bit libraries.

Download the Google Play Plugins for Unity

You can download many Android and Google Play plugins directly from GitHub. The Google Play Plugins for Unity project conveniently bundles many of these together into one comprehensive plugin.

To get started, follow these steps:

  1. Download the latest release from Google Play Plugins for Unity releases.

  2. Import the .unitypackage file by selecting the Unity IDE menu option Assets > Import package > Custom Package and importing all items.

Additional resources

The following official Unity guides contain additional information on implementing other key Android features:

To help you get started quickly with key Android features, try the following Unity samples and plugins:

AdMob mobile ads platform (plugin)
Android Performance Tuner (SDK)
ARCore augmented reality (SDK)
Firebase backend services and analytics (SDK)
Google Play Games services sign-in (plugin)

For more information, see developers.google.com/unity.