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

切换到ILRuntime就报错Cannot find Adaptor for:Model.IEvent #30

Closed
bj-gegf opened this issue Jan 6, 2018 · 1 comment
Closed

切换到ILRuntime就报错Cannot find Adaptor for:Model.IEvent #30

bj-gegf opened this issue Jan 6, 2018 · 1 comment

Comments

@bj-gegf
Copy link

bj-gegf commented Jan 6, 2018

最新版的代码,按照说明可以跑起来,但是设置了Script Define Symbols加上ILRuntime之后,再启动程序就会报错,请问是什么原因呢?

System.TypeLoadException: Cannot find Adaptor for:Model.IEvent
  at ILRuntime.CLR.TypeSystem.ILType.InitializeInterfaces () [0x000d7] in D:\ET-master\Unity\Assets\ThirdParty\ILRuntime\ILRuntime\CLR\TypeSystem\ILType.cs:397 
  at ILRuntime.CLR.TypeSystem.ILType.get_FirstCLRInterface () [0x0000d] in D:\ET-master\Unity\Assets\ThirdParty\ILRuntime\ILRuntime\CLR\TypeSystem\ILType.cs:142 
  at ILRuntime.Runtime.Intepreter.ILTypeInstance..ctor (ILRuntime.CLR.TypeSystem.ILType type, System.Boolean initializeCLRInstance) [0x000a5] in D:\ET-master\Unity\Assets\ThirdParty\ILRuntime\ILRuntime\Runtime\Intepreter\ILTypeInstance.cs:164 
  at ILRuntime.CLR.TypeSystem.ILType.Instantiate (System.Boolean callDefaultConstructor) [0x00003] in D:\ET-master\Unity\Assets\ThirdParty\ILRuntime\ILRuntime\CLR\TypeSystem\ILType.cs:924 
  at ILRuntime.Runtime.Enviorment.AppDomain.Instantiate (System.String type, System.Object[] args) [0x0003b] in D:\ET-master\Unity\Assets\ThirdParty\ILRuntime\ILRuntime\Runtime\Enviorment\AppDomain.cs:878 
  at Model.IEventILMethod..ctor (System.Type type, System.String methodName) [0x00025] in D:\ET-master\Unity\Assets\Scripts\Component\EventComponent.cs:62 
  at Model.EventComponent.Load () [0x0011d] in D:\ET-master\Unity\Assets\Scripts\Component\EventComponent.cs:160 
  at Model.EventComponentEvent.Load () [0x00007] in D:\ET-master\Unity\Assets\Scripts\Component\EventComponent.cs:114 
  at Model.ObjectEvents.Load () [0x0006c] in D:\ET-master\Unity\Assets\Scripts\Base\Object\ObjectEvents.cs:249 
@egametang
Copy link
Owner

Hotfix工程也要添加ILRuntime宏

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