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(); }
public static void UpdateBorderProcessor(AtlasPath path, UGUIAtlasWorker worker, object param) { worker.UpdateBorder(path.texPath); }
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); }
public static void RemoveUnUsedProcessor(AtlasPath path, UGUIAtlasWorker worker, object param) { PathUtil.DeleteFileOrFolder(path.sysDir); }
public static void GenMaterialProcessor(AtlasPath path, UGUIAtlasWorker worker, object param) { worker.GenMaterial(path.targetPath, path.texPath, path.alphaTexPath, (Shader)param, path.filePrefix); }
public static void SplitAlphaProcessor(AtlasPath path, UGUIAtlasWorker worker, object param) { worker.SplitAlpha(path.texPath, path.alphaTexPath); }
public static void GenAtlasProcessor(AtlasPath path, UGUIAtlasWorker worker, object param) { worker.GenAtlas(path.dir, path.targetPath, path.filePrefix, (string)param); }