Tencent / InjectFix

InjectFix is a hot-fix solution library for Unity
Other
1.97k stars 417 forks source link

InjectFix 如何新增字段 #104

Open GameObjectW opened 4 years ago

GameObjectW commented 4 years ago

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

jozhn commented 4 years ago

不支持新增字段 https://github.com/Tencent/InjectFix/issues/39

YuJiMing commented 4 years ago

应该是可以热修复属性,暂时还不支持字段

airdoer commented 3 years ago

目前已经支持字段,详见https://github.com/Tencent/InjectFix/pull/277 具体用法可以详见ILFix使用手册https://github.com/Tencent/InjectFix/blob/master/Doc/user_manual.md public class Test { [IFix.Interpret] public int intValue = 0; }