forked from Ourpalm/ILRuntime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Ourpalm#280 from 0x3f3f3f3f/master
增加常用问题解答。
- Loading branch information
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
title: 常见问题解答 | ||
type: guide | ||
order: 1030 | ||
--- | ||
|
||
<!--参考链接--> | ||
[master]:https://github.com/Ourpalm/ILRuntime | ||
|
||
[CLR自动分析绑定]:https://ourpalm.github.io/ILRuntime/public/v1/guide/bind.html | ||
<!--参考链接--> | ||
|
||
## 版本 | ||
|
||
- Unity2018.3以上需要用最新ilruntime。 | ||
- V1.4已过时,示例工程内的版本已过时,当前最新版本为[master]分支。 | ||
|
||
## 编辑器内出现错误 | ||
|
||
### 运行出现报错ObjectDisposedException: Cannot access a closed Stream | ||
|
||
- 加载dll的流被关闭了。新版要求流不能关闭,也不能用using写法。 | ||
|
||
## 打包后出现问题 | ||
|
||
### 用mono打包的时候,ILRuntime相关的功能都正常,改用IL2Cpp之后,注册的所有委托都不执行了? | ||
|
||
- 注册委托只能写在主工程里,不能写在热更工程里。 | ||
- 检查是否做了[CLR自动分析绑定]。 | ||
|
||
### ExecutionEngineException: Attempting to call method 'Scene::GetModule' for which no ahead of time (AOT) code was generated.电脑运行没问题,安卓上报这个错 | ||
|
||
- 检查是否做了[CLR自动分析绑定]。 | ||
- CLRBindings.Initialize(appdomain); 要调用这一句,放在最后.是否漏了这句。 | ||
|
||
|
||
|
||
|
||
## 疑难杂症 | ||
|
||
|