上一页 1 2 3 4 5 6 7 8 9 ··· 18 下一页

2022年5月5日

Unity 沿Y轴拖动 移动UI

摘要: Vector3 pos = sender. transform.localPosition;//pos并非引用。 pos.y += delta.y; sender.transform.localPosition = pos; 阅读全文

posted @ 2022-05-05 16:28 zqiang0803 阅读(126) 评论(0) 推荐(0) 编辑

Unity 挤压四周效果

摘要: using System.Collections; using System.Collections.Generic; using UnityEngine; using DG.Tweening; public class ToChangeImages:MonoBehaviour { float en 阅读全文

posted @ 2022-05-05 14:13 zqiang0803 阅读(177) 评论(0) 推荐(0) 编辑

2022年4月7日

as3.0 电子相册

摘要: package { import flash.display.Sprite; import flash.events.Event; import flash.net.URLRequest; import flash.net.URLLoader; import flash.display.Bitmap 阅读全文

posted @ 2022-04-07 15:26 zqiang0803 阅读(51) 评论(0) 推荐(0) 编辑

2022年4月2日

Unity Book-Page Curl Pro(其一用法)

摘要: 1.点击最右边红框,前两个红框里面的内容会自动增加,下面有给新增加的Page自动添加图片功能 2.右下角的地方觉得按钮是否执行 using BOOKPRO; using System.Collections; using System.Collections.Generic; using Unity 阅读全文

posted @ 2022-04-02 15:21 zqiang0803 阅读(574) 评论(0) 推荐(0) 编辑

2022年3月28日

UnityWebRequest 本地加载图片

摘要: string filePath = Application.streamingAssetsPath + "/证书/a4证书"+ str+".png"; print(filePath); IEnumerator GetTexture(string url) { UnityWebRequest uwr 阅读全文

posted @ 2022-03-28 13:46 zqiang0803 阅读(716) 评论(0) 推荐(0) 编辑

2022年3月15日

Unity 2017版本和2020版本遇到的一个坑

摘要: // 添加人物 void addPeople() { string filePath = Application.streamingAssetsPath + "/Pic/榜样的力量/人物"; DirectoryInfo direction = new DirectoryInfo(filePath); 阅读全文

posted @ 2022-03-15 09:40 zqiang0803 阅读(131) 评论(0) 推荐(0) 编辑

Unity Lambda朗姆达 =>一种运算方式

摘要: OnComplete(() => { boo = true; stepNum++; } //相当于 void OnComplete(){ boo = true; stepNum++; } 阅读全文

posted @ 2022-03-15 09:36 zqiang0803 阅读(120) 评论(0) 推荐(0) 编辑

2022年3月13日

unity 删除所有子物体

摘要: foreach (Transform ss in allContent.transform) { Destroy(ss.gameObject); } 阅读全文

posted @ 2022-03-13 19:25 zqiang0803 阅读(310) 评论(0) 推荐(0) 编辑

Unity 加载prefab到某个物体下

摘要: GameObject gb = AssetDatabase.LoadAssetAtPath("Assets/prefabs/荣誉边框.prefab", typeof(GameObject)) as GameObject; Instantiate( gb,allContent.transform); 阅读全文

posted @ 2022-03-13 18:41 zqiang0803 阅读(89) 评论(0) 推荐(0) 编辑

2022年3月10日

unity 读取.csv文件

摘要: using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Text; using UnityEngine; public class CSVTool: 阅读全文

posted @ 2022-03-10 15:47 zqiang0803 阅读(211) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 9 ··· 18 下一页

导航