Creating an instant game with Google Play Instant and Unity

By Andrew Giugliano (Developer Advocate) and Benjamin Frenkel (Product Manager)

Andrew Giugliano
Jan 17 · 9 min read
Instant games can be launched from several different mediums

How easy is it to integrate Google Play Instant with your Unity game?

You can build an instant game and publish it to the internal test track within a matter of hours. There, you can test and showcase your instant game internally if it exceeds the 13.5 MB limit for games built with Unity. You’ll also see the TRY NOW button on the Play Store. After publishing on the internal track, we have seen developers also focus on the following:

  • Reducing their instant game size to under 13.5 MB (the limit for instant games built with Unity).
  • Running their instant game through tests and QA to ensure that it gracefully manages sandbox requirements and permissions that respect user safety. (We recommend testing on different versions of the Android OS — at least Nougat and Oreo)

What comes next?

Create your own instant game in five steps.

  • Google Play Instant Plugin for Unity (asset store) (source)
  • An Android device (physical or virtual) running Android 5.0 (Lollipop) or higher with Developer Mode turned on and USB Debugging enabled
  • Access to your company’s APK source code to build debug and release versions.
  • Set up internal test track in Google Play Console
  • Sign up for the Unity Development Beta (mandatory for production)
1: Find the Play Instant Build Settings
  • If needed, you can specify alternative scenes you want to use in the Override Scene field.
  • If you are using Asset Bundles, specify the appropriate manifest file in the AssetBundle Manifest field.
  • Click Save when finished.
2: Configure Play Instant Build Settings
  • We also recommend updating the settings within the Recommended changes, which primarily focuses on reducing size.
  • Close the pop-up when you’re done.
3: Configure Play Instant Player Settings
  1. Navigate to the Google Play Console, make sure the appropriate app is selected, and navigate to the Android Instant Apps tab.
  2. Choose Instant app internal test, and follow the instructions on that page to upload the file you created in step 1. For more information, read the guide about releasing an instant app.
Managing Instant App Releases on the Google Play Console
  • Graphics API should be OpenGLES2 only
  • IL2CPP builds should enable engine stripping
  • The number of polygons in your 3D model
  • Audio quality
  1. A user-friendly loading screen that keeps the user informed while the Asset Bundle is being fetched in the background
  2. A web server or content delivery network (CDN) to host the Asset Bundle
2: Select scenes to include in AssetBundle
3: Configure AssetBundle URL and loading scene
using GooglePlayInstant;public void install() {    InstallLauncher.ShowInstallPrompt();}
  • If the instant game is similar to the tutorial in your installed app, the player can skip the tutorial after they install the full version
  • To reward players for converting from the instant game to the installed game
using GooglePlayInstant;public void StoreData(string data) {    CookieApi.SetInstantAppCookie(data);}
using GooglePlayInstant;var data = CookieApi.GetInstantAppCookie(data);

Google Play Apps & Games

Tips, trends, and industry thoughts for app and game developers building businesses on Google Play.

Andrew Giugliano

Written by

Developer Advocate @ Google

Google Play Apps & Games

Tips, trends, and industry thoughts for app and game developers building businesses on Google Play.