Beispiel #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);
            }
        }
Beispiel #2
0
        public static void Run(AssetBundleCheckerConfig config)
        {
            var checker = new AssetBundleChecker(config);

            checker.CheckAssetBundleName();
            checker.CheckChannelName();
            AssetDatabase.Refresh();
        }
Beispiel #3
0
        public static void Run(AssetBundleCheckerConfig config, bool checkChannel)
        {
            var checker = new AssetBundleChecker(config);

            checker.CheckAssetBundleName();
//            if (checkChannel)
//            {
//                checker.CheckChannelName();
//            }
            AssetDatabase.Refresh();
        }
Beispiel #4
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);
            }
        }
Beispiel #6
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();
        }
        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);
        }