Example #1
0
    public static void Process(Action <AtlasPath, UGUIAtlasWorker, object> processor, string[] dirs, UGUIAtlasWorker worker, object param = null)
    {
        AtlasPath path = new AtlasPath();

        for (int i = 0; i < dirs.Length; ++i)
        {
            path.FormatPath(dirs[i]);
            processor(path, worker, param);
        }
        AssetDatabase.Refresh();
    }
Example #2
0
 public static void UpdateBorderProcessor(AtlasPath path, UGUIAtlasWorker worker, object param)
 {
     worker.UpdateBorder(path.texPath);
 }
Example #3
0
 public static void UpdateSettingProcessor(AtlasPath path, UGUIAtlasWorker worker, object param)
 {
     worker.UpdateSetting(path.texPath, TextureImporterFormat.ETC_RGB4, TextureImporterFormat.PVRTC_RGB4);
     worker.UpdateSetting(path.alphaTexPath, TextureImporterFormat.ETC_RGB4, TextureImporterFormat.PVRTC_RGB4);
 }
Example #4
0
 public static void RemoveUnUsedProcessor(AtlasPath path, UGUIAtlasWorker worker, object param)
 {
     PathUtil.DeleteFileOrFolder(path.sysDir);
 }
Example #5
0
 public static void GenMaterialProcessor(AtlasPath path, UGUIAtlasWorker worker, object param)
 {
     worker.GenMaterial(path.targetPath, path.texPath, path.alphaTexPath, (Shader)param, path.filePrefix);
 }
Example #6
0
 public static void SplitAlphaProcessor(AtlasPath path, UGUIAtlasWorker worker, object param)
 {
     worker.SplitAlpha(path.texPath, path.alphaTexPath);
 }
Example #7
0
 public static void GenAtlasProcessor(AtlasPath path, UGUIAtlasWorker worker, object param)
 {
     worker.GenAtlas(path.dir, path.targetPath, path.filePrefix, (string)param);
 }