Esempio n. 1
0
 private static void Initialize()
 {
     TemporaryAssetHelper.Initialize();
     MaterialJsonData.Initialize();
     AssetBuildStrategyManager.Initialize();
     AssetBundleBuilder.Initialize();
     AssetRecordHelper.ReadAssetRecord();
     Logger.GetLogger(LOGGER_NAME).Level = Logger.LEVEL_LOG;
     _processedAssetPathSet = new HashSet <string>();
 }
Esempio n. 2
0
        private static bool IsBuildStrategyExists(string entryPath)
        {
            AssetBuildStrategy strategy = AssetBuildStrategyManager.GetAssetBuildStrategy(entryPath, false);

            if (strategy == null)
            {
                Logger.GetLogger(LOGGER_NAME).Log(string.Format("<color=#0000ff>未找到路径 {0} 对应的打包策略配置!</color>", entryPath));
                return(false);
            }
            return(true);
        }
Esempio n. 3
0
 private static bool VerifyAssetPath(string path)
 {
     if (Path.GetExtension(path) == string.Empty)
     {
         return(false);
     }
     foreach (string s in IGNORE_PATHS)
     {
         if (path.Contains(s) == true)
         {
             Logger.GetLogger(LOGGER_NAME).Log(string.Format("<color=#0000ff>路径 {0} 资源设置为不需要打包!</color>", path));
             return(false);
         }
     }
     return(true);
 }