Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

包含 as 的函数 Inject 不成功,不能对函数热更 #397

Open
tripawcat opened this issue Jun 4, 2023 · 1 comment
Open

包含 as 的函数 Inject 不成功,不能对函数热更 #397

tripawcat opened this issue Jun 4, 2023 · 1 comment

Comments

@tripawcat
Copy link

tripawcat commented Jun 4, 2023

如果有 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

@chexiongsheng
Copy link
Collaborator

as应该在之前的unity是不需要ldtoken,否则早反馈了。
你用的unity版本是啥?.net 版本之类的设置是啥?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants