public static bool IsAssetExist(string bundleName, string assetName)
{
#if UNITY_EDITOR
if (UseAssetDatabase)
{
EnsureAssetDatabase();
return(s_EditorAssetMap.IsAssetExist(bundleName, assetName));
}
#endif
if (!Initialized)
{
throw new System.Exception("BundleManager not initialized, try initialize first!");
}
if (!s_AssetBundles.TryGetValue(bundleName, out var foundBundle))
{
return(false);
}
return(foundBundle.Bundle.Contains(assetName));
}