摘要: 转载自 https://blog.csdn.net/lans_g/article/details/124232192 配合 https://www.bilibili.com/video/BV1Hr421p7EK 视频观看更佳。 一、什么是MVCC? mvcc,也就是多版本并发控制,是为了在读取数据时 阅读全文
posted @ 2024-09-01 18:20 dewxin 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 本文参考了 https://www.cnblogs.com/Jean90/p/16193938.html 简介 PlayerLoop是Unity提供用于修改游戏循环中系统组成的接口。我们可以分别通过PlayerLoop.GetCurrentPlayerLoop和PlayerLoop.SetPlaye 阅读全文
posted @ 2024-06-24 21:27 dewxin 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 背景 使用Unity编辑器时,我们有时候会将服务端的一些信息通过Unity编辑,但由于这部分内容属于服务端,客户端仅限于编辑器中的编辑,我们并不希望将这部分内容打包出去。因此我们需要在打包时将其隐藏或者删除,但是又不影响编辑器的编辑。 打包相关的回调接口 IPreprocessBuildWithRe 阅读全文
posted @ 2024-06-10 20:17 dewxin 阅读(27) 评论(0) 推荐(0) 编辑
摘要: stackalloc 官方文档 https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/stackalloc A stackalloc expression allocates a block of m 阅读全文
posted @ 2024-06-08 20:54 dewxin 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 网友的笔记 https://blog.csdn.net/u012322710/article/details/50858216 Fiter mode过滤器模式 因为贴图在屏幕里肯定会存在放大,缩小的情况,这种时候就会出现锯齿。 今天看到一个视频有讲解到这一块。 在UNITY3D中点开一张贴图,Fit 阅读全文
posted @ 2024-05-23 16:28 dewxin 阅读(363) 评论(0) 推荐(0) 编辑
摘要: 最终效果 步骤 进入梦幻西游所在文件夹,打开font目录,拷贝华康圆体hkyt.ttf到Unity工程目录。 打开FontMaker,生成对应字体asset。此时的效果如下 可以看到,效果还不错,但是看着有点累。用腾讯QQ的截图软件可以对比细节。可以发现网易的字体普遍有明亮的结构。所以肯定调高了亮度 阅读全文
posted @ 2024-05-05 16:28 dewxin 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 原文地址 https://freetype.org/freetype2/docs/glyphs/glyphs-4.html 目录字间距调整对子 Kerning pairs应用字间距调整 Applying kerning The term kerning refers to specific info 阅读全文
posted @ 2024-03-29 01:16 dewxin 阅读(73) 评论(0) 推荐(0) 编辑
摘要: 原文地址 https://freetype.org/freetype2/docs/glyphs/glyphs-3.html 目录基线,笔位置以及布局 Baseline, pens and layouts排版参数和包围盒 Typographic metrics and bounding boxes定位 阅读全文
posted @ 2024-03-27 16:34 dewxin 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 原文地址 https://freetype.org/freetype2/docs/glyphs/glyphs-7.html 目录矢量坐标 和 像素坐标 Vectorial versus pixel coordinatesFT_Bitmap描述符 The FT_Bitmap descriptor将轮廓 阅读全文
posted @ 2024-03-26 21:43 dewxin 阅读(96) 评论(0) 推荐(0) 编辑
摘要: FreeType是一款免费用于渲染字体的开源库。 在使用该类库时,最好先过一遍官方文档,其中FreeType Glyph Conventions部分的文章必读。 编译 我们可以进入下载界面,点击任意一个地址下载源码。 这里笔者使用的是2.13.2版本,解压后会获得一个freetype-2.13.2文 阅读全文
posted @ 2024-03-26 19:52 dewxin 阅读(1831) 评论(0) 推荐(0) 编辑