Пример #1
0
        void CheckChildren(bool checkChannel)
        {
            if (importer == null)
            {
                return;
            }

            var childrenImporters = importer.GetChildren();
            var checkerConfig     = new AssetBundleCheckerConfig();

            foreach (var childrenImport in childrenImporters)
            {
                if (config.Type == AssetBundleDispatcherFilterType.ChildrenFilesOnly && !childrenImport.IsFile)
                {
                    continue;
                }
                else if (config.Type == AssetBundleDispatcherFilterType.ChildrenFoldersOnly && childrenImport.IsFile)
                {
                    continue;
                }

                checkerConfig.CheckerFilters = config.CheckerFilters;
                checkerConfig.PackagePath    = childrenImport.packagePath;
                AssetBundleChecker.Run(checkerConfig, checkChannel);
            }
        }
Пример #2
0
        public static void Run(AssetBundleCheckerConfig config)
        {
            var checker = new AssetBundleChecker(config);

            checker.CheckAssetBundleName();
            checker.CheckChannelName();
            AssetDatabase.Refresh();
        }
Пример #3
0
 public AssetBundleChecker(AssetBundleCheckerConfig config)
 {
     this.config = config;
     assetsPath  = AssetBundleUtility.PackagePathToAssetsPath(config.PackagePath);
     importer    = AssetBundleImporter.GetAtPath(assetsPath);
     if (importer == null || !importer.IsValid)
     {
         Logger.LogError($"定义的Package信息path:({assetsPath}) 没有找不到,请对比Asset/Editor/AssetBundle/xxx和Asset/AssetsPackage/xxx");
     }
 }
Пример #4
0
        public static void Run(AssetBundleCheckerConfig config, bool checkChannel)
        {
            var checker = new AssetBundleChecker(config);

            checker.CheckAssetBundleName();
//            if (checkChannel)
//            {
//                checker.CheckChannelName();
//            }
            AssetDatabase.Refresh();
        }
Пример #5
0
        void CheckRoot(bool checkChannel)
        {
            if (importer == null)
            {
                return;
            }

            var checkerConfig = new AssetBundleCheckerConfig(config.PackagePath, config.CheckerFilters);

            AssetBundleChecker.Run(checkerConfig, checkChannel);
        }
        void CheckFairyGUISource(bool checkChannel)
        {
            var childrenImporters = importer.GetChildren();
            var checkerConfig     = new AssetBundleCheckerConfig();

            foreach (var childrenImport in childrenImporters)
            {
                if (config.Type == AssetBundleDispatcherFilterType.FairyGUI && !childrenImport.IsFile)
                {
                    continue;
                }

                checkerConfig.CheckerFilters = config.CheckerFilters;
                checkerConfig.PackagePath    = childrenImport.packagePath;
                AssetBundleChecker.Run(checkerConfig, checkChannel, true);
            }
        }
Пример #7
0
        public static void Run(AssetBundleCheckerConfig config, bool checkChannel, bool isFairyGui = false)
        {
            var checker = new AssetBundleChecker(config);

            if (isFairyGui)
            {
                checker.CheckFairyGUIAssetBundleName();
            }
            else
            {
                checker.CheckAssetBundleName();
            }
            if (checkChannel)
            {
                checker.CheckChannelName();
            }
            AssetDatabase.Refresh();
        }
Пример #8
0
 public AssetBundleChecker(AssetBundleCheckerConfig config)
 {
     this.config = config;
     assetsPath  = AssetBundleUtility.PackagePathToAssetsPath(config.PackagePath);
     importer    = AssetBundleImporter.GetAtPath(assetsPath);
 }
        void CheckRoot()
        {
            var checkerConfig = new AssetBundleCheckerConfig(config.PackagePath, config.CheckerFilters);

            AssetBundleChecker.Run(checkerConfig);
        }
        void CheckRoot(bool checkChannel)
        {
            var checkerConfig = new AssetBundleCheckerConfig(config.PackagePath, config.CheckerFilters);

            AssetBundleChecker.Run(checkerConfig, checkChannel);
        }