【本地化工具】名称检测工具优化
parent
9de990fafd
commit
b7ddc9ae4e
|
@ -958,10 +958,12 @@ namespace Assets.Scripts.Editor.LanguageTool
|
|||
Debug.Log("文件路径" + files[j]);
|
||||
fileName = fileName.Substring(0, fileName.Length - 3);
|
||||
}
|
||||
// 空格 替换为 下划线
|
||||
fileName = fileName.Replace(" ", "_");
|
||||
fileName = Path.GetDirectoryName(files[j]) + "/" + fileName + artTab + _ex;
|
||||
Debug.Log("文件名:" + fileName);
|
||||
EditorUtility.DisplayProgressBar("遍历图片资源目录", string.Format("正在检索数据:{0}/{1}", i, dirs.Count), (float)i / dirs.Count);
|
||||
AssetDatabase.MoveAsset(files[j], fileName);
|
||||
AssetDatabase.MoveAsset(files[j].Replace(Environment.CurrentDirectory + "\\", ""), fileName.Replace(Environment.CurrentDirectory + "\\", ""));
|
||||
}
|
||||
}
|
||||
EditorUtility.ClearProgressBar();
|
||||
|
|
Loading…
Reference in New Issue