10 2020 档案

摘要:rt 阅读全文
posted @ 2020-10-27 17:41 流星曳尾 阅读(332) 评论(0) 推荐(0)
摘要:--posX RectTransform.anchoredPosition.x --height RectTransform.sizeDelta.y; 阅读全文
posted @ 2020-10-27 16:50 流星曳尾 阅读(220) 评论(0) 推荐(0)
摘要:rt 阅读全文
posted @ 2020-10-27 14:13 流星曳尾 阅读(67) 评论(0) 推荐(0)
摘要:a = 5b = {}if type(a) == "number" then print("aa") --aaendif type(b) == "table" then print("bb") --bbend 阅读全文
posted @ 2020-10-26 16:45 流星曳尾 阅读(1739) 评论(0) 推荐(0)
摘要:.gameObject:SetActive 阅读全文
posted @ 2020-10-19 16:30 流星曳尾 阅读(279) 评论(0) 推荐(0)
摘要:.gameObject.activeSelf 阅读全文
posted @ 2020-10-19 16:11 流星曳尾 阅读(574) 评论(0) 推荐(0)
摘要:例子: tab = {[2] = "aaa",[10] = "bbb"}for k,v in pairs(tab) do print(type(k)) print(k..","..v)end --[[ number2,aaanumber10,bbb --]] 阅读全文
posted @ 2020-10-19 16:07 流星曳尾 阅读(120) 评论(0) 推荐(0)
摘要:例子: a = (function(p)return pend)(1)print(a)--1 阅读全文
posted @ 2020-10-16 18:14 流星曳尾 阅读(266) 评论(0) 推荐(0)
摘要:rt 阅读全文
posted @ 2020-10-16 18:04 流星曳尾 阅读(72) 评论(0) 推荐(0)
摘要:rt 阅读全文
posted @ 2020-10-16 17:33 流星曳尾 阅读(73) 评论(0) 推荐(0)
摘要:print("<color=#000000>aaaaaaa</color>"),会显示带有颜色的text 阅读全文
posted @ 2020-10-15 10:50 流星曳尾 阅读(1055) 评论(0) 推荐(0)
摘要:rt 阅读全文
posted @ 2020-10-15 09:52 流星曳尾 阅读(2399) 评论(0) 推荐(0)
摘要:rt 阅读全文
posted @ 2020-10-14 16:40 流星曳尾 阅读(234) 评论(0) 推荐(0)
摘要:在canvas中设置CanvasScaler中随屏幕方所,reference 为1920,1080,match mode设为expand 阅读全文
posted @ 2020-10-13 13:48 流星曳尾 阅读(118) 评论(0) 推荐(0)
摘要:(function() 函数体 end)() 例: if 30 > (function() return 10 end)() then print("1")else print("2")end --1 阅读全文
posted @ 2020-10-12 18:12 流星曳尾 阅读(432) 评论(0) 推荐(0)
摘要:rt 阅读全文
posted @ 2020-10-12 14:28 流星曳尾 阅读(99) 评论(0) 推荐(0)
摘要:rt 阅读全文
posted @ 2020-10-10 19:47 流星曳尾 阅读(111) 评论(0) 推荐(0)
摘要:\n 阅读全文
posted @ 2020-10-10 18:34 流星曳尾 阅读(446) 评论(0) 推荐(0)
摘要:rt 阅读全文
posted @ 2020-10-09 15:47 流星曳尾 阅读(294) 评论(0) 推荐(0)
摘要:public GameObject tmp; // Start is called before the first frame update void Start() { tmp.GetComponent<TMP_Text>().text = "hahah"; } 阅读全文
posted @ 2020-10-08 19:39 流星曳尾 阅读(2508) 评论(0) 推荐(0)
摘要:文件后缀应该为.lua 阅读全文
posted @ 2020-10-08 18:57 流星曳尾 阅读(290) 评论(0) 推荐(0)