三国卡牌客户端基础资源仓库
lcy
2026-05-14 a03c93db2dd64c9e660f0c2eb12e78b3563ff0f8
634 H5适配 将Text更换为TextEx工具适配异步
1个文件已修改
7 ■■■■ 已修改文件
Assets/Editor/Tool/ChangeTextAndImage.cs 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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;