LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

This version of Unity is unsupported.

AssetDatabase.GetAssetBundleDependencies

public static string[] GetAssetBundleDependencies(string assetBundleName, bool recursive);

Parameters

assetBundleNameThe name of the AssetBundle for which dependencies are required.
recursiveIf false, returns only AssetBundles which are direct dependencies of the input; if true, includes all indirect dependencies of the input.

Returns

string[] The names of all AssetBundles that the input depends on.

Description

Given an assetBundleName, returns the list of AssetBundles that it depends on.