摘要: c#自带函数 //字符 -> charCode int charCode = char.ConvertToUtf32(str, 0); //charCode -> 字符 string ch = char.ConvertFromUtf32(charCode); 自己实现:字符 -> charCode 阅读全文
posted @ 2024-04-29 23:22 yanghui01 阅读(2) 评论(0) 推荐(0) 编辑
摘要: fnt文件生成unity字体的原理其实就是渲染图集Atlas上的Sprite,这边直接利用Unity自带的图集工具生成fnt文件 注意:这里生成的fnt文件还没法直接用,因为没有关联字符,这个工具只是第1步,第2步要用Fnt编辑工具关联字符:Fnt文件编辑工具 效果 public class Spr 阅读全文
posted @ 2024-04-29 22:17 yanghui01 阅读(7) 评论(0) 推荐(0) 编辑