
Lua
文章平均质量分 84
ruofeng133
技术美术
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Lua基础操作
https://www.runoob.com/lua/lua-strings.html 逻辑运算 lua只有 nil和false才会判断 false,其余一律判true print(4 and 5); --> 5 print(nil and 5); --> nil print(4 or 5); --> 4 print(nil or 5); --> 5 交换 x = 1 y = 2 print(x,y) x,y = y.原创 2021-01-23 12:18:09 · 758 阅读 · 0 评论 -
Lua string转table
可以自己写个函数实现一下 ss = '{[1]={["discount"]=10000,["id"]=1},\ [2]={["discount"]=1041,["id"]=2}, \ [3]={["discount"]=5558,["id"]=3}}'; local tab = loadstring("return " .. ss); print(tab()[1].discou...原创 2019-04-13 16:09:14 · 6928 阅读 · 0 评论 -
Emmylua 调用unity api
手动添加这个然后 --- 在lua变量后 加 xxx ---@Type UnityEngine.GameObject ----然后再 xxx.xxx 就有提示了原创 2019-04-16 20:15:52 · 2280 阅读 · 2 评论