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

请问可以把xlua用的lua虚拟机编译成webgl插件(.bc文件)在unity plugin用么? #1147

Closed
zdykiller opened this issue Jun 21, 2024 · 2 comments

Comments

@zdykiller
Copy link

看unity文档提及webgl可以通过emscripten预先编译成.bc文件来导入
https://docs.unity3d.com/6000.0/Documentation/Manual/webgl-native-plugins-with-emscripten.html
相比c源码放到unity plugin目录下,直接放.bc 感觉方便维护一些
我对这部分的编译不了解,想问下可以实现xlua编译成 .bc 文件放到unity plugin目录来用么?

@zdykiller zdykiller changed the title 请问可以把xlua编译成webgl插件(.bc文件)在unity plugin用么? 请问可以把xlua用的lua虚拟机编译成webgl插件(.bc文件)在unity plugin用么? Jun 25, 2024
@chexiongsheng
Copy link
Collaborator

默认也是一个c文件编译成一个bc文件,放一堆bc文件和放一堆c文件有区别吗?

@zdykiller
Copy link
Author

谢谢,我理解错了。我原本理解的是能类似生成dll文件那样,把所有c文件编译成一个完整bc。

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

2 participants