Version: Unity 6.0 (6000.0)
LanguageEnglish
  • C#

AndroidAssetPacks.GetCoreUnityAssetPackNames

Suggest a change

Success!

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.

Close

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.

Close

Cancel

Declaration

public static string[] GetCoreUnityAssetPackNames();

Returns

string[] An array of asset pack names for core Unity asset packs with the fast-follow or on-demand delivery type. An empty array if Unity didn't create any core asset packs with these delivery types, or if the PlayCore plug-in is missing.

Description

Gets the names of the core Unity asset packs built for this application that use the fast-follow or on-demand delivery type.

Core Unity asset packs are asset packs that Unity creates automatically when it builds the Android app bundle. Unity creates core asset packs only when you enable Split Application Binary in Android Player settings.

This method uses PlayCore APIs, therefore it can only return names of asset packs that use the fast-follow or on-demand delivery types. If this method returns an empty array, to differentiate between the two potential causes, check the AndroidAssetPacks.coreUnityAssetPacksDownloaded property.

You can pass the asset pack names that this method returns to other methods such as AndroidAssetPacks.GetAssetPackStateAsync or AndroidAssetPacks.DownloadAssetPackAsync to get status information or to start the download. However, calling AndroidAssetPacks.RemoveAssetPack with the names returned by this method has no effect.