InjectFix
InjectFix copied to clipboard
无法Patch返回协程衍生类的函数
在运行时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],仍然报相同的错。
报这个错表示你那个类没提前放到IFix列表。
IFix列表具体是哪个,在那里注入