InjectFix
InjectFix copied to clipboard
包含 as 的函数 Inject 不成功,不能对函数热更
如果有 GetClassA() as ClassA 这种使用了 as 的函数,Inject 的时候就会报警告: Warning: not support il[IL_002a: ldtoken 并且修改这个函数做热更,加载的时候会报: System.Exception: can not load type [System.Object, netstandard, Version=2.1.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51] at IFix.Core.PatchManager.Load (System.IO.Stream stream, System.Boolean checkNew) [0x00000] in <00000000000000000000000000000000>:0
as应该在之前的unity是不需要ldtoken,否则早反馈了。 你用的unity版本是啥?.net 版本之类的设置是啥?