InjectFix icon indicating copy to clipboard operation
InjectFix copied to clipboard

无法Patch返回协程衍生类的函数

Open PhilianZ opened this issue 5 years ago • 2 comments

在运行时load patch的时候报错: System.Exception: cat not find id field: ClassName-FunctionName0, for CustomAsync FunctionName() 返回值为继承自CustomYieldInstruction的类CustomAsync。函数FunctionName是override父类的,非新增。此外类内另一个传入List<CustomAsync>的函数,load patch也会报相同错误。类内其他函数热更没问题。因此基本锁定问题是和CustomAsync类有关。 我查看了issue #70,尝试在CustomAsync和ClassName前都添加了[IFix.CustomBridge],仍然报相同的错。

PhilianZ avatar May 21 '20 09:05 PhilianZ

报这个错表示你那个类没提前放到IFix列表。

chexiongsheng avatar Jun 08 '20 01:06 chexiongsheng

IFix列表具体是哪个,在那里注入

zsy5882-hub avatar Apr 21 '25 08:04 zsy5882-hub