From fd3b2c0ed69d82cd78bcbe5c871bac5c45ee113b Mon Sep 17 00:00:00 2001 From: wangzhenxing Date: Sat, 3 Jul 2021 18:52:28 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=88=98=E6=96=97]=3D=3D=3D=3D=3D=3D=3D=3D=3D?= =?UTF-8?q?=3D=3D=3D=3D=E5=87=8F=E6=80=92=E6=95=B0=E5=AD=97=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E5=AD=97=E4=BF=AE=E6=94=B9=E6=8F=90=E4=BA=A4=EF=BC=8C?= =?UTF-8?q?=E7=94=9F=E6=88=90=E6=9D=90=E8=B4=A8=E7=90=83=E6=96=87=E6=9C=AC?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E4=BF=AE=E6=94=B9=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/ManagedResources/Fonts/ArtFont_4/ArtFont_4_mat.mat | 2 +- Assets/Scripts/Editor/CreateFont.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/ManagedResources/Fonts/ArtFont_4/ArtFont_4_mat.mat b/Assets/ManagedResources/Fonts/ArtFont_4/ArtFont_4_mat.mat index 379decdff7..46aadfeaf2 100644 --- a/Assets/ManagedResources/Fonts/ArtFont_4/ArtFont_4_mat.mat +++ b/Assets/ManagedResources/Fonts/ArtFont_4/ArtFont_4_mat.mat @@ -20,7 +20,7 @@ Material: serializedVersion: 3 m_TexEnvs: - _MainTex: - m_Texture: {fileID: 0} + m_Texture: {fileID: 2800000, guid: 1fce59d7564616f4391c013750e3fc05, type: 3} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} m_Floats: [] diff --git a/Assets/Scripts/Editor/CreateFont.cs b/Assets/Scripts/Editor/CreateFont.cs index 2bdd13244b..2f03e785e7 100644 --- a/Assets/Scripts/Editor/CreateFont.cs +++ b/Assets/Scripts/Editor/CreateFont.cs @@ -128,7 +128,7 @@ public class CreateFontEditor : Editor return; } - string imgPathName = fntPath.Replace(".fnt", "_Tex.tga"); + string imgPathName = fntPath.Replace(".fnt", "_0.png"); string MatPathName = fntPath.Replace(".fnt", "_mat.mat"); string customFontPath = fntPath.Replace(".fnt", "_cfont.fontsettings"); if (!File.Exists(imgPathName))