上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 47 下一页
摘要: # 看下面的几个例子, 就知道元素出现nil时,没法正确获得数组的长度,长度是按某种规律来出现的(具体啥规律得熟悉lua源码才能知道) local tblTest5 = { 1, nil, 2, } print(table.getn(tblTest5)) 结果3 local tblTest6 = { 阅读全文
posted @ 2022-06-11 15:55 yanghui01 阅读(340) 评论(0) 推荐(0)
摘要: # 按住ctrl, 在多个位置点击, 就进入批量编辑了 # ctrl+alt+上/下(菜单 -> Selection -> Add Prev/Next Line), 就进入列编辑模式, 同时编辑列内容 阅读全文
posted @ 2022-06-10 22:48 yanghui01 阅读(1358) 评论(0) 推荐(0)
摘要: # 缩进设置, 菜单 -> View -> Indentation 使用4个空格作为缩进 # 换行符格式,菜单 -> View -> Line Endings Windows: \r\n, CR&LF Unix: \n, LF Mac OS 9: \r, CR # 换行宽度 菜单 -> View - 阅读全文
posted @ 2022-06-10 00:22 yanghui01 阅读(1284) 评论(0) 推荐(0)
摘要: 【代码编辑】 # 自动补全:ctrl+space (菜单 -> Edit -> Comment) # 行注释:ctrl+/ # 块注释:ctrl+shift+/ (菜单 -> Edit -> Text) # 新建行(下面):ctrl+enter # 新建行(上面):ctrl+shift+enter 阅读全文
posted @ 2022-06-09 22:59 yanghui01 阅读(1058) 评论(0) 推荐(0)
摘要: 代码 function LeftTime(hour, min, sec) min = min or 0 sec = sec or 0 local dt = os.date("*t", os.time()) local leftSec = 24 * 3600 - dt.hour * 3600 + dt 阅读全文
posted @ 2022-05-14 20:58 yanghui01 阅读(1868) 评论(0) 推荐(0)
摘要: 每天首次登录可领取一次奖励, 判断是否当天的首次登录 function IsSameDay(lastTimeStamp, nowTimeStamp) local dt1 = os.date("*t", lastTimeStamp) local dt2 = os.date("*t", nowTimeS 阅读全文
posted @ 2022-05-14 16:38 yanghui01 阅读(67) 评论(0) 推荐(0)
摘要: #用到的库LibTiff LibTiff.Net (bitmiracle.com) # tiff格式介绍 TIFF图像文件格式详解整理_sqzeng的博客-CSDN博客_tiff格式 Tiff Tag Reference, Search page (awaresystems.be) # 常用的tag 阅读全文
posted @ 2022-05-02 00:11 yanghui01 阅读(1069) 评论(0) 推荐(0)
摘要: public class TestWindow : EditorWindow { [MenuItem("Window/TestWindow")] static void ShowWindow() { var window = GetWindow<TestWindow>(); window.title 阅读全文
posted @ 2022-04-29 00:11 yanghui01 阅读(233) 评论(0) 推荐(0)
摘要: public class TestWindow : EditorWindow { [MenuItem("Window/TestWindow")] static void ShowWindow() { var window = GetWindow<TestWindow>(); window.title 阅读全文
posted @ 2022-04-25 23:41 yanghui01 阅读(53) 评论(0) 推荐(0)
摘要: # 下载NuGetForUnity GitHub - GlitchEnzo/NuGetForUnity: A NuGet Package Manager for Unity # 双击unitypackage,导入下载的插件到Unity # 导入完毕,会多出一个NuGet的菜单 # 搜索要添加的库,点 阅读全文
posted @ 2022-04-21 23:45 yanghui01 阅读(1673) 评论(0) 推荐(0)
上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 47 下一页