From 3d69bd59a8eb276daf7dbd81bd5398776d4bb625 Mon Sep 17 00:00:00 2001
From: lwb <q3213421wrwqr>
Date: 星期二, 26 一月 2021 14:50:01 +0800
Subject: [PATCH] Merge branch 'master' into RLRuntime
---
Assets/Editor/Tool/ChangePrefabsFont.cs | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/Assets/Editor/Tool/ChangePrefabsFont.cs b/Assets/Editor/Tool/ChangePrefabsFont.cs
index 1d46393..6d58dda 100644
--- a/Assets/Editor/Tool/ChangePrefabsFont.cs
+++ b/Assets/Editor/Tool/ChangePrefabsFont.cs
@@ -55,10 +55,10 @@
filepaths1.CopyTo(filepaths, 0);
filepaths2.CopyTo(filepaths, filepaths1.Length);
Debug.LogFormat("棰勪慨鏀归鍒朵綋瀛椾綋鎬绘暟锛歿0}", filepaths.Length);
- int startIndex = 0;
+ int startIndex = 0; //鏂囦欢鎵ц涓暟
- int a = 0;
- int i = 0;
+ int a = 0; // 鎬诲瓧浣撴暟
+ int i = 0; // 鏇存崲瀛椾綋鏁�
EditorApplication.update = delegate () {
string file = filepaths[startIndex];
file = file.Substring(file.IndexOf("Assets"));
@@ -75,6 +75,7 @@
if (item.font == fromChangeFont)
{
item.font = toChangeFont;
+ item.fontSize = item.fontSize - 2;
EditorUtility.SetDirty(_prefab);
i++;
}
@@ -83,12 +84,12 @@
startIndex++;
if (isCancel || startIndex >= filepaths.Length) {
+ Debug.LogFormat("瀛椾綋鎵归噺淇敼鎴愬姛--妫�绱0}涓鍒朵綋, 瀛椾綋鎬讳釜鏁皗1}锛屼慨鏀箋2}", startIndex, a, i);
EditorUtility.ClearProgressBar();
EditorApplication.update = null;
startIndex = 0;
AssetDatabase.SaveAssets();
AssetDatabase.Refresh();
- Debug.LogFormat("瀛椾綋鎵归噺淇敼鎴愬姛--{0}", i);
}
};
}
--
Gitblit v1.8.0