InjectFix icon indicating copy to clipboard operation
InjectFix copied to clipboard

InjectFix 如何新增字段

Open GameObjectW opened this issue 5 years ago • 3 comments

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

GameObjectW avatar Apr 20 '20 08:04 GameObjectW

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

jozhn avatar Apr 23 '20 13:04 jozhn

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

YuJiMing avatar Jun 05 '20 12:06 YuJiMing

目前已经支持字段,详见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; }

airdoer avatar May 28 '21 03:05 airdoer