上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 20 下一页

2021年4月27日

Unity 拖动条里面的按钮可以点击

摘要: Button btn = this.GetComponent<Button>(); btn.onClick.AddListener(onExp); 阅读全文

posted @ 2021-04-27 10:51 zqiang0803 阅读(106) 评论(0) 推荐(0)

Unity 固定高度等比放大宽度

摘要: imgae =transform.GetComponent<Image>(); imgae.preserveAspect = true; float imageH = imgae.transform.parent .GetComponent<RectTransform>().sizeDelta.y; 阅读全文

posted @ 2021-04-27 10:49 zqiang0803 阅读(446) 评论(0) 推荐(0)

2021年4月26日

vbs 切换浏览器中的窗口

摘要: Set objShell = CreateObject("Wscript.Shell") objShell.SendKeys "^1" 阅读全文

posted @ 2021-04-26 09:46 zqiang0803 阅读(373) 评论(0) 推荐(0)

2021年4月24日

Unity 拖动条里面点击按钮不执行的解决办法

摘要: void Start() { Button btn = this.GetComponent<Button>(); btn.onClick.AddListener(OnClick); } private void OnClick() { explain = Main.StaticExplain; if 阅读全文

posted @ 2021-04-24 16:57 zqiang0803 阅读(235) 评论(0) 推荐(0)

2021年4月20日

Unity 图片自动识别尺寸

摘要: StartCoroutine(LoadUnitDatas()); public IEnumerator LoadUnitDatas() { yield return new WaitForEndOfFrame(); myScorllRect.gameObject.SetActive(true); m 阅读全文

posted @ 2021-04-20 17:19 zqiang0803 阅读(224) 评论(0) 推荐(0)

2021年4月9日

Unity 读取.Json内容

摘要: using System; using System.IO; using UnityEngine; public class ReadJson:MonoBehaviour { public static TestSetting test = new TestSetting(); //文件路径 pub 阅读全文

posted @ 2021-04-09 16:36 zqiang0803 阅读(98) 评论(0) 推荐(0)

2021年4月8日

as3.0 UDP

摘要: import flash.utils.ByteArray; import flash.net.DatagramSocket; var udpSocket:DatagramSocket = new DatagramSocket(); var bytes:ByteArray = new ByteArra 阅读全文

posted @ 2021-04-08 14:17 zqiang0803 阅读(259) 评论(0) 推荐(0)

2021年3月15日

as3.0 获取XML内容

摘要: public static function xmlFun() { flashXml = new XML(); xml_loader = new URLLoader(); xml_loader.load(new URLRequest("IP.xml")); xml_loader.addEventLi 阅读全文

posted @ 2021-03-15 11:13 zqiang0803 阅读(59) 评论(0) 推荐(0)

as3.0 获取本地IP

摘要: package { import flash.display.Sprite; import flash.net.InterfaceAddress; import flash.net.NetworkInfo; import flash.net.NetworkInterface; public clas 阅读全文

posted @ 2021-03-15 10:59 zqiang0803 阅读(198) 评论(0) 推荐(0)

2020年11月4日

.Dat 删除当前txt,并且创建ip4,保存到txt

摘要: del /f /s /q IP.txt ipconfig | find /I"IPv4">IP.txt 阅读全文

posted @ 2020-11-04 09:38 zqiang0803 阅读(60) 评论(0) 推荐(0)

上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 20 下一页

导航