
Lua
文章平均质量分 84
ruofeng133
技术美术
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Lua基础操作
https://www.runoob.com/lua/lua-strings.html逻辑运算lua只有 nil和false才会判断 false,其余一律判trueprint(4 and 5); --> 5print(nil and 5); --> nilprint(4 or 5); --> 4print(nil or 5); --> 5交换x = 1y = 2print(x,y)x,y = y.原创 2021-01-23 12:18:09 · 757 阅读 · 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 · 2277 阅读 · 2 评论