10 2020 档案
摘要:rt
阅读全文
摘要:--posX RectTransform.anchoredPosition.x --height RectTransform.sizeDelta.y;
阅读全文
摘要:a = 5b = {}if type(a) == "number" then print("aa") --aaendif type(b) == "table" then print("bb") --bbend
阅读全文
摘要:rt
阅读全文
摘要:例子: tab = {[2] = "aaa",[10] = "bbb"}for k,v in pairs(tab) do print(type(k)) print(k..","..v)end --[[ number2,aaanumber10,bbb --]]
阅读全文
摘要:rt
阅读全文
摘要:例子: a = (function(p)return pend)(1)print(a)--1
阅读全文
摘要:print("<color=#000000>aaaaaaa</color>"),会显示带有颜色的text
阅读全文
摘要:rt
阅读全文
摘要:在canvas中设置CanvasScaler中随屏幕方所,reference 为1920,1080,match mode设为expand
阅读全文
摘要:rt
阅读全文
摘要:(function() 函数体 end)() 例: if 30 > (function() return 10 end)() then print("1")else print("2")end --1
阅读全文
摘要:rt
阅读全文
摘要:rt
阅读全文
摘要:public GameObject tmp; // Start is called before the first frame update void Start() { tmp.GetComponent<TMP_Text>().text = "hahah"; }
阅读全文
摘要:文件后缀应该为.lua
阅读全文

浙公网安备 33010602011771号