三国卡牌客户端基础资源仓库
hch
7 天以前 e35c8e096041b3cf97d91677bf8d6c4587223a9b
0312 大部分字体改用overflow处理;新图集
2个文件已修改
36 ■■■■ 已修改文件
Assets/Editor/SpritePacking/SpriteSettings.asset 22 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Editor/Tool/ChangePrefabsFontSize.cs 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Editor/SpritePacking/SpriteSettings.asset
@@ -519,3 +519,25 @@
      maxTextureSize: 2048
      textureCompression: 1
      textureFormat: 50
  - folderName: Settlement
    blockOffset: 1
    enableRotation: 0
    enableTightPacking: 0
    padding: 4
    readable: 0
    generateMipMaps: 0
    sRGB: 1
    filterMode: 1
    platformSettings:
    - name: Standalone
      maxTextureSize: 2048
      textureCompression: 1
      textureFormat: 4
    - name: Android
      maxTextureSize: 2048
      textureCompression: 1
      textureFormat: 50
    - name: iPhone
      maxTextureSize: 2048
      textureCompression: 1
      textureFormat: 50
Assets/Editor/Tool/ChangePrefabsFontSize.cs
@@ -23,7 +23,7 @@
        {
            Change();
        }
        if (GUILayout.Button("检测字体和rect的高度"))
        if (GUILayout.Button("检测字体和自适应的关系"))
        {
            FindSmallRect();
        }
@@ -62,9 +62,13 @@
            foreach (Text item in transArr14)
            {
                if (item.rectTransform.sizeDelta.y - item.fontSize <= 3)
                {
                    Debug.LogFormat("界面 {0} 字体检测太小 {1}, {2}", file, item.rectTransform.sizeDelta.y, item.fontSize);
                if (item.verticalOverflow == VerticalWrapMode.Overflow || item.horizontalOverflow == HorizontalWrapMode.Overflow)
                {
                    var target = item.GetComponent<ContentSizeFitter>();
                    if (target != null)
                    {
                        Debug.LogErrorFormat("存在overflwer和ContentSizeFitter 冲突的预制体 {0} - {1}", file, item.name);
                    }
                }
            }
@@ -74,7 +78,7 @@
            if (isCancel || startIndex >= filepaths.Length)
            {
                Debug.LogFormat("检测字体和rect的高度--检索{0}个预制体, 字体总个数{1}", startIndex, a);
                Debug.LogFormat("检测字体和自适应的关系--检索{0}个预制体, 字体总个数{1}", startIndex, a);
                EditorUtility.ClearProgressBar();
                EditorApplication.update = null;
                startIndex = 0;