public AssetBundleAnalyzerController(AssetBundleCollection assetBundleCollection) { m_AssetBundleCollection = (assetBundleCollection != null ? assetBundleCollection : new AssetBundleCollection()); m_AssetBundleCollection.OnLoadingAssetBundle += delegate(int index, int count) { if (OnLoadingAssetBundle != null) { OnLoadingAssetBundle(index, count); } }; m_AssetBundleCollection.OnLoadingAsset += delegate(int index, int count) { if (OnLoadingAsset != null) { OnLoadingAsset(index, count); } }; m_AssetBundleCollection.OnLoadCompleted += delegate() { if (OnLoadCompleted != null) { OnLoadCompleted(); } }; m_DependencyDatas = new Dictionary <string, DependencyData>(); m_ScatteredAssets = new Dictionary <string, List <Asset> >(); m_AnalyzedStamps = new HashSet <Stamp>(); }
public AssetBundleEditorController() { m_ConfigurationPath = Type.GetConfigurationPath <AssetBundleEditorConfigPathAttribute>() ?? Utility.Path.GetCombinePath(Application.dataPath, "Ash.Core/Configs/AssetBundleEditor.xml"); m_AssetBundleCollection = new AssetBundleCollection(); m_AssetBundleCollection.OnLoadingAssetBundle += delegate(int index, int count) { if (OnLoadingAssetBundle != null) { OnLoadingAssetBundle(index, count); } }; m_AssetBundleCollection.OnLoadingAsset += delegate(int index, int count) { if (OnLoadingAsset != null) { OnLoadingAsset(index, count); } }; m_AssetBundleCollection.OnLoadCompleted += delegate() { if (OnLoadCompleted != null) { OnLoadCompleted(); } }; m_SourceAssetSearchPaths = new List <string>(); m_SourceAssetSearchRelativePaths = new List <string>(); m_SourceAssets = new Dictionary <string, SourceAsset>(); m_SourceAssetRoot = null; m_SourceAssetRootPath = null; m_SourceAssetUnionTypeFilter = null; m_SourceAssetUnionLabelFilter = null; m_SourceAssetExceptTypeFilter = null; m_SourceAssetExceptLabelFilter = null; m_AssetSorter = AssetSorterType.Path; SourceAssetRootPath = DefaultSourceAssetRootPath; }