Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


AndroidAssetPackStatus

Values that indicate the status of an Android asset pack.
Read time 1 minuteLast updated 6 days ago

Definition

public enum AndroidAssetPackStatus

Remarks

Unity always returns the status value and the error together in AndroidAssetPackInfo or AndroidAssetPackState objects. Unity returns these objects via callback methods after you call either AndroidAssetPacks.DownloadAssetPackAsync or AndroidAssetPacks.GetAssetPackStateAsync. When the status value is AndroidAssetPackStatus.Failed or AndroidAssetPackStatus.Unknown, the error value indicates the cause of the failure. For any other status value, the error value should always be AndroidAssetPackError.NoError. This enum directly wraps the AssetPackStatus values in the PlayCore API. Additional Resources: AndroidAssetPackInfo, AndroidAssetPacks.DownloadAssetPackAsync, AndroidAssetPacks.GetAssetPackStateAsync, AndroidAssetPackState.

Fields

Value

Description

CanceledIndicates that the Android asset pack download is canceled.
CompletedIndicates that the device has downloaded the Android asset pack and the asset pack is available to the application.
DownloadingIndicates that the device is downloading the Android asset pack.
FailedIndicates that the device failed to download the Android asset pack.
NotInstalledIndicates that the Android asset pack is not installed.
PendingIndicates that the Android asset pack status should soon change.
RequiresUserConfirmationIndicates that the Android asset pack requires user consent to be downloaded.
TransferringIndicates that the device has downloaded the Android asset pack and is unpacking the asset pack to its final location.
UnknownIndicates that the Android asset pack is not available for the application.
WaitingForWifiIndicates that the device has paused the Android asset pack download until it connects to the WiFi network.