focus-creative-games / hybridclr

HybridCLR是一个特性完整、零成本、高性能、低内存的Unity全平台原生c#热更新解决方案。 HybridCLR is a fully featured, zero-cost, high-performance, low-memory solution for Unity's all-platform native c# hotupdate.
https://code-philosophy.com/
MIT License
6.36k stars 647 forks source link

The type or namespace name 'HybridCLR' could not be found #130

Closed Study123Guangen closed 5 months ago

Study123Guangen commented 5 months ago

Describe the bug | 描述问题 Assets\LoadDll.cs(1,7): error CS0246: The type or namespace name 'HybridCLR' could not be found (are you missing a using directive or an assembly reference?)

Enviroment | 环境

To Reproduce | 复制步骤 加载热更新程序集 为了简化演示,我们不通过http服务器下载HotUpdate.dll,而是直接将HotUpdate.dll放到StreamingAssets目录下。

HybridCLR是原生运行时实现,因此调用Assembly Assembly.Load(byte[])即可加载热更新程序集。

创建Assets/LoadDll.cs脚本,然后在main场景中创建一个GameObject对象,挂载LoadDll脚本。

做到這邊的時候將程式碼貼上以後 using HybridCLR; 這一行就有問題了,請問我應該如何解決

pirunxi commented 5 months ago

你没安装 HybridCLR package。按照 安装文档 说明做。 如果你确实已经安装了HybridCLR,说明LoadDll脚本并不在全局的Assembly-CSharp里,而是在你的某个assembly definition里。给这个assembly definition 加上 HybridCLR.Runtime模块的引用即可。还有问题去新手群或discord问题, 主页README里有地址

Study123Guangen commented 5 months ago

不好意思 我在Readme裡面只有看到官網,沒有看到新手群和discord可以請您跟我說在哪裡麻,謝謝!

Bian-Sh commented 5 months ago

不好意思 我在Readme裡面只有看到官網,沒有看到新手群和discord可以請您跟我說在哪裡麻,謝謝!

qq:680274677

Study123Guangen commented 5 months ago

不好意思 我沒有QQ 請問有Discord麻

pirunxi commented 5 months ago

readme里有 https://discord.gg/BATfNfJnm2

Study123Guangen commented 5 months ago

謝謝!!