

Using (var activity = UnityPlayerHelper.GetCurrentActivity()) Var sessionInfo = /* Object serialized as a string representing player's current location, etc. These are demonstrated in the following example: using Passing state about the current game session via.Passing an install referrer string via the referrer parameter.RESULT_CANCELED on the specified requestCode. OnActivityResult() in the instant app's main activity and check for Determining if the user cancels out of the installation process.The ShowInstallPrompt() method has an overload that allows for one or more of Show an install promptĪn instant app with an Install button can display a Play Store installĭialog by calling the following from an install button click handler: .ShowInstallPrompt() The Google Play Instant plugin for Unity provides APIsįor displaying a Play Store install dialog and for transferring state from

The goal of many instant apps is to give users a chance to experience the appīefore installing the full version. Into an instant app APK, and after the instant app starts it retrieves theĪssetBundle from a server. When using Quick Deploy, the Unity game engine and a loading screen are packaged Quick Deploy can reduce the size of a Unity-based instant app by packaging some To further reduce the APK size, open the Unity Package Manager and remove any

If a setting has a corresponding Update button, click it toĬhange the setting to the preferred value. These Player Settings are divided into Required and Recommended Graphics APIs, and reduce your APK's size. You optimize support for Google Play Instant, develop against more compatible The Player Settings dialog, shown in Figure 1, displays suggestions to help
