public static void CreateCheckModule(ResourceCheckerPlus root, CheckModuleConfig cfg)
        {
            System.Type type = System.Type.GetType("ResourceCheckerPlus." + cfg.CheckModuleClassName);
            if (type == null)
            {
                return;
            }
            ResCheckModuleBase checkModule = System.Activator.CreateInstance(type) as ResCheckModuleBase;

            checkModule.InitCheckModule(cfg);
            checkModule.checkModeName = new GUIContent(cfg.CheckModuleTitleName, cfg.CheckModuleDescription);
            root.resCheckModeList.Add(checkModule);
        }
 public void InitCheckModule(CheckModuleConfig cfg)
 {
     checkerList.Clear();
     sideBarObjList.Clear();
     checkModuleCfg = cfg;
     if (cfg == null)
     {
         return;
     }
     CreateChecker();
     SetCheckerConfig();
     LoadCheckRecord();
     RefreshCheckerConfig();
 }
        public void InitCheckModuleConfig()
        {
            checkModuleConfigList.Clear();
            string configPath = configRootPath + checkModuleCfgPath;

            string[] guids = AssetDatabase.FindAssets("t:ScriptableObject", new string[] { configPath });
            if (guids == null)
            {
                return;
            }
            foreach (var v in guids)
            {
                string            path = AssetDatabase.GUIDToAssetPath(v);
                CheckModuleConfig cfg  = AssetDatabase.LoadAssetAtPath <CheckModuleConfig>(path);
                if (cfg == null)
                {
                    continue;
                }
                checkModuleConfigList.Add(cfg);
            }
        }