三国卡牌客户端基础资源仓库
yyl
2026-05-15 0229e944a9f77b8622ae2b34ef0fa314a8aa0fc2
Assets/Editor/Tool/ChangeTextAndImage.cs
@@ -78,7 +78,12 @@
            TextEx textEx = go.AddMissingComponent<TextEx>();
            textEx.text = textContent;
            textEx.font = FontUtility.preferred;
            var font = FontUtility.preferred;
            if (font == null)
            {
                font = AssetDatabase.LoadAssetAtPath<Font>("Assets/ResourcesOut/Font/GameFont1.ttf");
            }
            textEx.font = font;
            textEx.fontSize = textFontSize;
            textEx.raycastTarget = false;
            textEx.alignment = TextAnchor.MiddleCenter;