Skip to content

Commit

Permalink
更新faq,readme的使用手册链接
Browse files Browse the repository at this point in the history
  • Loading branch information
chexiongsheng committed Dec 17, 2020
1 parent 2441e42 commit b912c9d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ console.log(actor.K2_GetActorLocation().ToString());
* [unreal faq](doc/unreal/faq.md)
* [unity faq](doc/unity/faq.md)

## 使用手册

* [unity](doc/unity/manual.md)

## 支持的引擎,平台

### 引擎
Expand Down
8 changes: 8 additions & 0 deletions doc/unity/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,11 @@ System.Text.Encoding.UTF8.GetBytes("你好");
sudo xattr -r -d com.apple.quarantine puerts.bundle
~~~

## 生成代码打包手机版本时报方法(runInEditMode等等)找不到

因为这些方法是编辑器独有的,可以通过filter过滤掉,filter使用参考[使用手册](manual.md)

## 编辑器下运行正常,il2cpp打包后调用函数/访问属性失败

unity默认会进行代码剪裁,简而言之unity发现某引擎api,系统api没有被业务c#使用,就不编译倒cpp。
解决办法:1、对要调用的api生成wrap代码,这样c#里头就有了引用;2、通过link.xml告知unity别剪裁,link.xml的配置请参考unity官方文档。

0 comments on commit b912c9d

Please sign in to comment.