在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):asqbtcupid/lua_hotupdate开源软件地址(OpenSource Url):https://github.com/asqbtcupid/lua_hotupdate开源编程语言(OpenSource Language):Lua 100.0%开源软件介绍(OpenSource Introduction):接口包含
Init负责初始化,RootPath是你的lua文件目录,该目录及子目录下的所有的lua文件都被纪录。UpdateListFile是一个lua路径,要求这个lua文件返回一个table,这个table包含想要热更新的文件的文件名。 Update每运行一次就对UpdateListFile里面的文件进行热更新,只更新函数,不更新数据。 ~限Windows平台+lua5.1使用, 详细配置lua热更新 5.3的版本 用在了虚幻4上 API:
function Init() is responsible for Initialization, Just needed call once. The parameter "UpdateListFile" is a lua path which will be used by require lua api, The file should return a table contains filename of the file which was desired for hotreload.The parameter "RootPath" is a table, contains rootpaths of your xxx.lua file.... function Update() is responsible for doing hotreload action.It update all function in file which was included in the require(UpdateListFile).you can run a timer to call Update() every few seconds. only works on windows platform and lua5.1. thanks~ |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论