Giter Club home page Giter Club logo

Comments (4)

GREAT1217 avatar GREAT1217 commented on September 23, 2024

错误日志上说了,GameHotfixEntry.OnLoadAOTDllSuccess() 中出现的错误。

AOT dlls 有问题,打包工程,会生成在 Game/Hotfix 文件夹中,然后再打 ab 包测试。

HybridCLR Builder 中 Build 模块写了步骤的。

具体的原理,建议先看一遍 HybridCLR 的官方文档。

https://focus-creative-games.github.io/hybridclr/performance/generic_limit/

from starforce_hybridclr.

Kojima648 avatar Kojima648 commented on September 23, 2024

我的流程和操作都正常,在2020.3可以,换了2021,就报错。下面的invoke就进不去,你还是检查下吧,编辑器必现
图片

from starforce_hybridclr.

GREAT1217 avatar GREAT1217 commented on September 23, 2024

定位到问题了。把 GameHotfixEntry.Start() 函数中宏定义 UNITY_EDITOR 取反,也会出现相同的错误。

是编辑器下加载元数据的问题。原因是:

编译代码时,会根据编译平台剔除平台以外的代码。

所以在编辑器运行时执行 Game.Hotfix.dll 的逻辑时,会忽略宏定义 UNITY_EDITOR 中的逻辑,加载元数据而出现错误。

目前解决办法是:编辑器下加载 Game.Hotfix 程序集测试热更逻辑,编译的 GameHotfix.dll 只能打包后测试。(已提交更新)

感谢你的反馈~ 😊

你也可以使用别的办法跳过 <编辑器下加载元数据> 这个错误,以在编辑器下测试 Game.Hotfix.dll。

from starforce_hybridclr.

Kojima648 avatar Kojima648 commented on September 23, 2024

OK

from starforce_hybridclr.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.