Пример #1
0
        public void AnalyzeAsset()
        {
            List <string> tmpTopDep = new List <string>();

            EAssetBundleHelper.FindRealDep(_assetPath, tmpTopDep);

            // 添加Asset真真的依赖
            for (int i = tmpTopDep.Count - 1; i >= 0; i--)
            {
                if (tmpTopDep[i].EndsWith(EAssetBundleConst.IGNORE_BUILD_ASSET_SUFFIX))
                {
                    continue;
                }
                EAssetObjectInfo depAb = EAssetBundleAnalysis.FindAssetObject(tmpTopDep[i]);
                if (depAb == null)
                {
                    Debug.LogError("找不到资源:" + tmpTopDep[i] + "居然没进缓存");
                    continue;
                }
                Debug.AssertFormat(!depAb.IsMainAsset, "主依赖资源[{0}]不能成为依赖资源", depAb.AssetPath);
                //_topDepMap.Add(depAb.AssetPath, depAb);
                depAb.SetParent(this);
            }
        }
Пример #2
0
 public static void AllAnalysisAsset()
 {
     EAssetBundleAnalysis.AllAnalysisAsset();
 }