williamwen1986 / flutter_luakit_demo

show how to use flutter_luakit_plugin with flutter project
56 stars 12 forks source link

如何动态加载lua脚本 #6

Closed jczh98 closed 5 years ago

jczh98 commented 5 years ago

不同于 #4 ,程序在运行时加载脚本,以及IOS如何加载document的脚本

williamwen1986 commented 5 years ago

可以在你的工程项目调用luaSetPackagePath(pathChar);设置lua工程路径

williamwen1986 commented 5 years ago

https://github.com/williamwen1986/Luakit/blob/bbceb574aebf3537b1df145f93db88800f138d85/LuaKitProject/IOSFrameWork/include/lua_helpers.h 方法在这个头文件里面

williamwen1986 commented 5 years ago

startLuakit之前设置就可以