会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
就当笔记吧
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
35
36
37
38
39
40
41
42
43
···
47
下一页
2022年6月11日
lua数组无法正确获得长度(使用nil元素时)
摘要: # 看下面的几个例子, 就知道元素出现nil时,没法正确获得数组的长度,长度是按某种规律来出现的(具体啥规律得熟悉lua源码才能知道) local tblTest5 = { 1, nil, 2, } print(table.getn(tblTest5)) 结果3 local tblTest6 = {
阅读全文
posted @ 2022-06-11 15:55 yanghui01
阅读(340)
评论(0)
推荐(0)
2022年6月10日
sublime批量编辑,列编辑模式
摘要: # 按住ctrl, 在多个位置点击, 就进入批量编辑了 # ctrl+alt+上/下(菜单 -> Selection -> Add Prev/Next Line), 就进入列编辑模式, 同时编辑列内容
阅读全文
posted @ 2022-06-10 22:48 yanghui01
阅读(1358)
评论(0)
推荐(0)
sublime常用设置
摘要: # 缩进设置, 菜单 -> 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)
2022年6月9日
sublime常用快捷键
摘要: 【代码编辑】 # 自动补全:ctrl+space (菜单 -> Edit -> Comment) # 行注释:ctrl+/ # 块注释:ctrl+shift+/ (菜单 -> Edit -> Text) # 新建行(下面):ctrl+enter # 新建行(上面):ctrl+shift+enter
阅读全文
posted @ 2022-06-09 22:59 yanghui01
阅读(1058)
评论(0)
推荐(0)
2022年5月14日
距离明天某个时间还剩多长时间
摘要: 代码 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)
2022年5月2日
tiff格式图片的读写
摘要: #用到的库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)
2022年4月29日
控制手柄-BoxBoundsHandle
摘要: 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)
2022年4月25日
链接LabelField
摘要: 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)
2022年4月21日
在Unity中使用nuget
摘要: # 下载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
下一页
公告