background picture of the home page

Hi,tpxxn

使用 git 时修改文件名大小写

使用 git 时如果遇到需要修改已经在历史记录里的文件名的大小写,直接改名是不行的。假设需要修改的是tank.png,操作如下: # 关键点!从缓存删除 git rm --cached tank.png # 改名 mv tank.png.meta Tank.png # 添加 git add Tank

thumbnail of the cover of the post

GameplayTags

前言 GameplayTags 是一款适用于 Unity 游戏开发的树形结构的Tag管理器,利用它我们可以做到很多效果,这里使用的是 Alex 大佬的 GameplayTags 库 使用方式 从上述链接下载完整源码,然后将整个源码文件夹放入 Unity 项目的 Assets/Plugins/ 目录下

thumbnail of the cover of the post

Unity 实现装饰器模式

装饰器模式可以减少编写重复代码的工作量,这里我们使用Microsoft.Extensions.DependencyInjection依赖注入库(使用NugetForUnity安装)实现装饰器模式 实现效果 主要类和接口 Decorator 类: 包含两个字典 _listA 和 _listAAndB,

thumbnail of the cover of the post

Nuget For Unity

Nuget For Unity 是一款可以在Unity中使用 Nuget 的包管理器,使用十分方便。 安装方式:github release页面下载 unitypackage 后导入Unity

thumbnail of the cover of the post

Markdown 代码块支持的语言

支持高亮显示的语言 支持的语言:1c, abnf, accesslog, actionscript, ada, apache, applescript, arduino, armasm, asciidoc, aspectj, autohotkey, autoit, avrasm, awk, axap

thumbnail of the cover of the post

xLua 下使用 lua-protobuf

参考链接:xLua 官方:https://hub.fastgit.org/Tencent/xLua.gitxLua 官方集成第三方库:https://hub.fastgit.org/chexiongsheng/build_xlua_with_libs.gitlua-protobuf:https://

thumbnail of the cover of the post

Protobuf-csharp-port 使用方法

首先在github 下载 最新版运行.\bulid\buildAll.bat然后进入目录.\build_output\tools新建一个AutoProtoGen.bat的脚本脚本内容:@echo off ::Proto文件路径set SOURCE_PATH=.\ ::Protogen工具路径set

thumbnail of the cover of the post

Unity 脚本生命周期

官方手册(English 2018.3):https://docs.unity3d.com/2018.3/Documentation/Manual/ExecutionOrder.htmlUnity 脚本执行顺序图:场景第一次加载当 场景 开始时会调用这些函数(场景中每个对象执行一次)Awake:此函

thumbnail of the cover of the post