Skip to content

unity mod制作

L edited this page Apr 24, 2020 · 10 revisions

教程

mod制作教程
调试:附加到进程

举个栗子

太吾绘卷Mod制作教程
https://github.com/phorcys/Taiwu_mods
下载

https://www.dll4free.com/assembly-csharp.dll.html
https://cmake.org/download/

创建C#脚本(新建Mod)
在Unity里面选择Assets->Create C# Script
然后用VS打开,生成库就没有问题

http://www.andnixsh.com/2018/01/how-to-create-simple-mod-menu-in-unity.html

找不到unity相关库
https://answers.unity.com/questions/1235110/the-type-or-namespace-unityengine-could-not-be-fou.html

1.用Unity Editor打开任意脚本,unity会重新生成,或者用Assets - 打开C#项目
2.找到各个dll,手动引入

反编译资料

反编译可直接修改源代码
[太吾绘卷] [mod] [UnityModManager] 人物浮动信息 v1.2.0
FQMenuManager
dnspy
TaiwuDecompiler
ILSpy+Taiwu-Mod-Loader

其他

unity with VS
unity mod manager
unity mod manager2

Clone this wiki locally