上一页 1 2 3 4 5 6 ··· 20 下一页

2024年9月27日

Unsupported D3D format 0x58

摘要: AVPro Video 1.9.17b.改成这个版本,删掉之前的,不影响 阅读全文

posted @ 2024-09-27 17:03 zqiang0803 阅读(85) 评论(0) 推荐(0)

2024年8月1日

Unity中调试Scroll View,一个Scroll View可以加载不同的图片

摘要: 1.所有的图片宽度要相同(最好) 2.锚点设置 using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class ScrollImageS 阅读全文

posted @ 2024-08-01 09:35 zqiang0803 阅读(43) 评论(0) 推荐(0)

2024年7月22日

Unity5.6版本 加载本地音乐

摘要: using UnityEngine; using UnityEngine.UI; using System.Collections; public class LoadAudio : MonoBehaviour { public string audioPath; // 本地音频文件的路径 publ 阅读全文

posted @ 2024-07-22 11:26 zqiang0803 阅读(39) 评论(0) 推荐(0)

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 阅读(66) 评论(0) 推荐(0)

Unity Text里面添加两个空格

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

posted @ 2024-07-15 10:16 zqiang0803 阅读(150) 评论(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 阅读(98) 评论(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 阅读(339) 评论(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 阅读(730) 评论(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 阅读(158) 评论(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 阅读(77) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 ··· 20 下一页

导航