lua
白月光soul
希望能有一天变强
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
lua注意事项
Lua 中的变量全是全局变量,哪怕是语句块或是函数里,除非用 local 显式声明为局部变量。 局部变量的作用域为从声明位置开始到所在语句块结束。 boolean 类型只有两个可选值:true(真) 和 false(假),Lua 把 false 和 nil 看作是 false,其他的都为 true,数字 0 也是 true 字符串连接使用的是 …,如print(“1”…“2”)得12,如果print(“1”+“2”)得3,会进行加法运算 不同于其他语言的数组把 0 作为数组的初始索引,在 Lua 里表的默.原创 2022-03-02 17:14:52 · 594 阅读 · 0 评论 -
lua常用方法
lua常用方法 1. 打印 ---tab 表的名字 max_indent打印级别(0-3)嵌套级别 append_str 自定义的打印名字 function TableString(tab, max_indent, append_str) max_indent = max_indent or 3 append_str = append_str or "" local res = append_str or "" local loopTableDict = {} local _tabl原创 2022-03-02 17:12:30 · 727 阅读 · 2 评论 -
xlua官方项目分析
xlua官方项目_U3DScripting分析 代码里都放了我的注释哪里不懂都可以评论问我 LuaBehaviour.cs 代码 using UnityEngine; using System.Collections; using System.Collections.Generic; using XLua; using System; namespace XLuaTest { //通过Injection来操控场景中的物体 [System.Serializable] public原创 2022-03-02 17:08:43 · 481 阅读 · 1 评论
分享