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(); }