Skip to content
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

关于.csx文件格式的支持 #736

Open
JiekeZhu opened this issue Oct 10, 2022 · 0 comments
Open

关于.csx文件格式的支持 #736

JiekeZhu opened this issue Oct 10, 2022 · 0 comments

Comments

@JiekeZhu
Copy link

为了独立编译热更代码,需要把代码从UnityEditor中隐藏,Hotfix~。
如果使用.csx文件后缀的话,就可以避开这个问题了,其他流程正常工作。
好处是:
可以在编辑器里管理和操作C#热更代码了。.csx保持.cs的工作流程,同时又能和.js、.lua一样被操作。
而且可以在编辑器的模拟Unity对C#脚本的编译流程:监听脚本资源变化,添加到.csproj中,使用Roslyn自动编译出DLL。

目前的问题是:
使用.csx后,调试有问题,需要修改。部分代码运行时的函数断点信息不匹配,失效了。

👍 👍 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant