Version: 2022.3
  • C#


class in UnityEngine.Android


Implemented in:UnityEngine.AndroidJNIModule

Suggest a change


Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.


Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.




Provides methods for handling Android asset packs.

Methods in this class are either direct wrappers of java APIs in Google's PlayCore plugin, or depend on values that the PlayCore API returns. Therefore to use it, the gradle project must include the "" dependency. If your project contains custom asset packs or you enable Split Application Binary in Player Settings, Unity automatically adds this dependency to the unityLibrary submodule's build.gradle file. If the PlayCore plugin is missing, calling any wrapper throws an InvalidOperationException exception. Note that PlayCore APIs only work with fast-follow and on-demand delivery type asset packs, therefore methods in this class have the same limitation.

Static Properties

coreUnityAssetPacksDownloadedChecks if all core Unity asset packs are downloaded.

Static Methods

CancelAssetPackDownloadCancels Android asset pack downloads.
DownloadAssetPackAsyncDownloads Android asset packs.
GetAssetPackPathGets the full path to the location where the device stores the assets for the Android asset pack.
GetAssetPackStateAsyncQueries the state of Android asset packs.
GetCoreUnityAssetPackNamesGets the name of every core Unity asset pack built for this application that use either the fast-follow or on-demand delivery type.
RemoveAssetPackRemoves Android asset pack.
RequestToUseMobileDataAsyncRequests to use mobile data to download Android asset packs.