private static void LoadDependenciePaths() { dependenciePathsDic.Clear(); string[] sArr = s_manifest.GetAllAssetBundles(); for (int i = 0; i < sArr.Length; i++) { string assetPath = sArr[i]; //string assetName = Path.GetFileNameWithoutExtension(assetPath); string[] dependenPaths = s_manifest.GetDirectDependencies(assetPath); //Debug.Log("===========>>"+assetPath); string[] dependens = new string[dependenPaths.Length]; for (int j = 0; j < dependenPaths.Length; j++) { dependens[j] = ResourcesConfigManager.GetLoadPathBase(ResourceManager.LoadType, dependenPaths[j]); } dependenciePathsDic.Add(ResourcesConfigManager.GetLoadPathBase(ResourceManager.LoadType, assetPath), dependens); } hasDependenciesPathList.Clear(); foreach (var assetPath in dependenciePathsDic.Keys) { bool hasDep = false; foreach (var depList in dependenciePathsDic.Values) { foreach (var item in depList) { if (item == assetPath) { hasDep = true; hasDependenciesPathList.Add(assetPath); break; } } if (hasDep) { break; } } //if (!hasDep) //{ // Debug.Log("没有依赖:" + assetPath); //} } }