InjectFix icon indicating copy to clipboard operation
InjectFix copied to clipboard

InjectFix is a hot-fix solution library for Unity

Results 142 InjectFix issues
Sort by recently updated
recently updated
newest added

在类A中一个函数需要修复,解决过程中需要在类A或者其他类中新增一个字段(int count = 0;),这时候需要如何操作,[Path]标签只支持函数,感谢。

因为ECS好像会做IL Postprocess,不知道会不会有影响 ? 在DOTS下应该如何使用InjectFix?能不能System的Update函数上加Patch ?

![image](https://user-images.githubusercontent.com/45257277/81254695-6be95200-905e-11ea-9e58-1cae883274f3.png) 如图所示,红色框内的是原来的代码 蓝色框的是Patch的代码 Patch运行后会报错 请问下是需要哪里处理吗? ![image](https://user-images.githubusercontent.com/45257277/81255131-79eba280-905f-11ea-9b8b-72b58c228a19.png) 配置类: ![image](https://user-images.githubusercontent.com/45257277/81255316-f1213680-905f-11ea-944c-1a558410fcb0.png) 这是测试代码: 只是加载个Prefab然后旋转,随便拖个Cube进Resources就行 [RotateFix.txt](https://github.com/Tencent/InjectFix/files/4590724/RotateFix.txt)

unity版本2019.4.x,在编辑器执行/Inject后,运行调试没问题。发布后报错注入失败。反编译对应DLL发现是未注入的DLL。我怀疑可能发布不是用的Library目录下注入好的DLL。但是发布流程我一直没研究明白。请问需要怎么处理?

打patch的时候,如果有被inject过的函数正在执行,有可能会导致执行报错

看到最新的特性里支持新增字段了,想试试新增可序列化的类型。 比如: [Interpret] [Serializable] public class NewData { [Interpret] public int type; }

Windows下Patch成功,逻辑也运行正常,但是有Patch的话退出游戏的时候程序会卡死未响应,没有Patch能正常关掉游戏 是不是退出游戏的时候需要有额外的清除工作 ![image](https://user-images.githubusercontent.com/42759229/116049185-96d21900-a6a8-11eb-8a08-0c786a7dfc2f.png)

版本unity 2020 1.11f 我确定调用代码的地方只有一次,原代码运行没问题` 两次的调用堆栈如下,两次的IFix.Core.VirtualMachine:Execute 调用有不同 1、 >>>>Init Start111 UnityEngine.Debug:Log(Object) DCETRuntime.Log:Info(String) (at Packages/DCET.Core/Runtime/Unity/Log.cs:23) DCET.Log:Info(String) (at Packages/DCET.Core/Hotfix/Other/Log.cs:14) System.Reflection.MethodBase:Invoke(Object, Object[]) IFix.Core.ReflectionMethodInvoker:Invoke(VirtualMachine, Call&, Boolean) IFix.Core.VirtualMachine:Execute(Instruction*, Value*, Object[], Value*, Int32, Int32, Int32, Value**) IFix.Core.VirtualMachine:Execute(Instruction*,...

我做了一个测试,得出一个结果,injectFix性能没有xLua好,请问这个时意料之中的结果吗? @chexiongsheng ![image](https://user-images.githubusercontent.com/18566483/115383907-f5127e00-a208-11eb-8a35-dafd225f6f05.png)

如:public void test() { int value = 1; ttt(); void ttt() { Debug.Log("value "); } } 这个函数patch他没什么问题 public void test() { int value = 1; ttt(); void ttt() { Debug.Log("value...