1 2 3 4 5 ··· 18 下一页

2024年7月15日

Unity doTween Text 动画滚动

摘要: void InvkoeFun() { _widthText = cueText.GetComponent<RectTransform>().rect.width; _dirtion = cueText.transform.position.x - (_widthText - _widthMask)- 阅读全文

posted @ 2024-07-15 14:34 zqiang0803 阅读(1) 评论(0) 推荐(0) 编辑

Unity Text里面添加两个空格

摘要: <color=#FFFFFF00> </color> 阅读全文

posted @ 2024-07-15 10:16 zqiang0803 阅读(1) 评论(0) 推荐(0) 编辑

2024年3月11日

Unity 高亮设置

摘要: highlighter = gameObject.AddComponent<Highlighter>(); //highlighter.ConstantOn(Color.red, 3f);//红色高亮 3秒到最亮 highlighter.tweenDuration = 1; highlighter. 阅读全文

posted @ 2024-03-11 17:59 zqiang0803 阅读(41) 评论(0) 推荐(0) 编辑

2024年3月6日

Unity 改变图片的渐变color ,用dotween

摘要: GetComponent<Image>().DOColor(Color.blue, 1F).SetEase(Ease.InSine).SetLoops(-1, LoopType.Yoyo); 阅读全文

posted @ 2024-03-06 17:02 zqiang0803 阅读(136) 评论(0) 推荐(0) 编辑

2023年6月21日

Unity 关闭运行自己的exe,结束进程

摘要: /// <summary> /// 退出程序 /// </summary> void QuitProcedure() { #if UNITY_EDITOR UnityEditor.EditorApplication.isPlaying = false; #else Application.Quit( 阅读全文

posted @ 2023-06-21 10:31 zqiang0803 阅读(420) 评论(0) 推荐(0) 编辑

2023年6月9日

Unity 获取文件夹里面有多少个文件夹、

摘要: FileSystemInfo[] files = new DirectoryInfo(path).GetFileSystemInfos("*",SearchOption.TopDirectoryOnly);//文件夹 里面有 多少个文件夹 FileInfo[] floders = new Direc 阅读全文

posted @ 2023-06-09 15:34 zqiang0803 阅读(109) 评论(0) 推荐(0) 编辑

2023年4月28日

unity 把本地图片批量添加到 物体的脚本上 Texture 类型

摘要: private void Awake() { string filePath = System.Environment.CurrentDirectory + "/专利/"; if(Directory.Exists(filePath)) {//判断这个路径是否存在 DirectoryInfo dire 阅读全文

posted @ 2023-04-28 16:54 zqiang0803 阅读(62) 评论(0) 推荐(0) 编辑

【Unity Shader编程】之十五 屏幕高斯模糊(Gaussian Blur)后期特效的实现

摘要: using UnityEngine; using System.Collections; //设置在编辑模式下也执行该脚本 [ExecuteInEditMode] //添加选项到菜单中 [AddComponentMenu("Learning Unity Shader/Lecture 15/Rapid 阅读全文

posted @ 2023-04-28 15:20 zqiang0803 阅读(192) 评论(0) 推荐(0) 编辑

2023年2月27日

Unity Prefab(预制体)一次性循环10个会得到同样的

摘要: IEnumerator Test1() { for(int i = 0;i < 5;i++) { GameObject gb = (GameObject)Resources.Load("Prefabs/Image"); gb.name = i.ToString() + "_cui"; allMove 阅读全文

posted @ 2023-02-27 16:22 zqiang0803 阅读(69) 评论(0) 推荐(0) 编辑

2023年2月22日

Unity 读取Json文件、创建Json文件

摘要: 1.储存在外部设置 2.Android的时候.json文件没法编辑,可以修改成.txt格式。WPS修改后再改回后缀名。 /// <summary> /// /storage/emulated/0/ Android 外置内存根目录 /// Application.persistentDataPath; 阅读全文

posted @ 2023-02-22 16:29 zqiang0803 阅读(231) 评论(0) 推荐(0) 编辑

1 2 3 4 5 ··· 18 下一页

导航