AssetDatabase.GetAssetBundleDependencies

AssetDatabase.GetAssetBundleDependencies

https://docs.unity3d.com/ScriptReference/AssetDatabase.GetAssetBundleDependencies.html

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

Parameters

assetBundleName The name of the AssetBundle for which dependencies are required.
recursive If 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.

发布了64 篇原创文章 · 获赞 36 · 访问量 3万+

猜你喜欢

转载自blog.csdn.net/kuangben2000/article/details/104043879