步骤2:在Assets/Plugins/WebGL下创建一个Include文件,用来声明用到的lua库文件。这里我取名叫xlua_webgl.cpp,将第一步骤下的WebGLPlugins内的lua文件加到这个声明文件中(当然也可以包含自己写的C文件),逻辑代码如下: extern"C"{#include"../../../WebGLPlugins/lapi.c"#
Building Library\Bee\artifacts\WebGL\GameAssembly\master_WebGL_wasm\u9l0_xlua_webgl.o failed with output: In file included from Assets/Plugins/WebGL/xlua_webgl.cpp:31: F:\test\testXlua\WebGLPlugins\lundump.c:237:33: warning: adding 'int' to a string does not append to the string [...
Failed running python "/Applications/Unity-2017-4.1/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/emcc" @"/Users/mac/coding/New Unity Project (2)/Assets/../Temp/emcc_arguments.resp" mac系统,u3d版本2017-2018都试过,xlua试过2.1.11,2.1.13都是同样的
xLua is a lua programming solution for C# ( Unity, .Net, Mono) , it supports android, ios, windows, linux, osx, etc. - xLua/WebGLPlugins/luaconf.h at d970db56d5ef59eab7be0c7129b4cc584ad20f19 · Tencent/xLua
8 changes: 7 additions & 1 deletion8WebGLPlugins/xlua.c Original file line numberDiff line numberDiff line change Expand Up@@ -40,7 +40,7 @@ LUA_API int xlua_get_registry_index() { } LUA_APIintxlua_get_lib_version() { return104; ...
xlua可以在 webGL上跑么,如果不能需要做哪些工作呢?#175 New issue ClosedDescription tangyiyang opened on Jul 10, 2017另外,xlua详细的工作原理有介绍文档么,lot of thanks! :)Metadata AssigneesNo one assigned LabelsNo labels TypeNo type ProjectsNo projects MilestoneNo milestone RelationshipsNone yet ...
stack traceback: [string "LuaTestScript"]:17: in function <[string "LuaTestScript"]:16> at XLua.LuaEnv.ThrowExceptionFromError (System.Int32 oldTop) [0x00000] in <00000000000000000000000000000000>:0 所有文件一个不落都导入了,直接打开下载的包也试过了,发布WebGL时报错问题解决了,运行时浏览器报...
猜测原因: webgl平台对线程支持不完善,具体的报错我贴到最后。 我的解决方案: 用LockFreeQueue refQueue 替换 QueuerefQueue 以下是LockFreeQueue的代码,供参考: public class LockFreeQueue { internal class SingleLinkNode where U : T { public SingleLinkNode Nex