-
Notifications
You must be signed in to change notification settings - Fork 21
2021.3.3f1 非编辑器下运行报错 #7
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
Comments
错误日志上说了, AOT dlls 有问题,打包工程,会生成在 Game/Hotfix 文件夹中,然后再打 ab 包测试。 HybridCLR Builder 中 Build 模块写了步骤的。 具体的原理,建议先看一遍 HybridCLR 的官方文档。 https://focus-creative-games.github.io/hybridclr/performance/generic_limit/ |
定位到问题了。把 是编辑器下加载元数据的问题。原因是: 编译代码时,会根据编译平台剔除平台以外的代码。 所以在编辑器运行时执行 Game.Hotfix.dll 的逻辑时,会忽略宏定义 UNITY_EDITOR 中的逻辑,加载元数据而出现错误。 目前解决办法是:编辑器下加载 Game.Hotfix 程序集测试热更逻辑,编译的 GameHotfix.dll 只能打包后测试。(已提交更新) 感谢你的反馈~ 😊 你也可以使用别的办法跳过 <编辑器下加载元数据> 这个错误,以在编辑器下测试 Game.Hotfix.dll。 |
OK |
Uh oh!
There was an error while loading. Please reload this page.
如图,AB包已经打过了,StreamingAssets中也有资源。但是运行报错,资源复制到了PHPStudy那个目录下了已经。
The text was updated successfully, but these errors were encountered: