Пример #1
0
 public void Cleanup()
 {
     foreach (var bundle in bundles)
     {
         bundle.Cleanup();
         if (bundle.splits.Count == 0)
         {
             var defaultSplit = new BundleSplit();
             bundle.splits.Add(defaultSplit);
             MarkAsDirty();
         }
     }
 }
Пример #2
0
 public void Cleanup()
 {
     allCollectedAssets.Clear();
     ArrayUtility.Clear(ref allCollectedAssetsPath);
     foreach (var bundle in bundles)
     {
         bundle.Cleanup();
         if (bundle.splits.Count == 0)
         {
             var defaultSplit = new BundleSplit();
             bundle.splits.Add(defaultSplit);
             MarkAsDirty();
         }
     }
 }
Пример #3
0
        public bool Lookup(string assetGuid, out BundleInfo bundleInfo, out BundleSplit bundleSplit, out BundleSlice bundleSlice)
        {
            for (int i = 0, size = bundles.Count; i < size; i++)
            {
                var bundle = bundles[i];
                if (bundle.Lookup(assetGuid, out bundleSplit, out bundleSlice))
                {
                    bundleInfo = bundle;
                    return(true);
                }
            }

            bundleInfo  = null;
            bundleSplit = null;
            bundleSlice = null;
            return(false);
        }
            public bool LookupAssetPath(string assetPath, out BundleSplit bundleSplit, out BundleSlice bundleSlice)
            {
                for (int i = 0, size = splits.Count; i < size; i++)
                {
                    var split = splits[i];
                    var slice = split.LookupAssetPath(assetPath);
                    if (slice != null)
                    {
                        bundleSplit = split;
                        bundleSlice = slice;
                        return(true);
                    }
                }

                bundleSplit = null;
                bundleSlice = null;
                return(false);
            }