上一页 1 ··· 5 6 7 8 9 10 11 12 13 下一页
摘要: 记录一下,方便使用 第一种是用LineRenderer 创建两个空物体,把两个空物体分开,一个设置成起点,一个终点 如下图 把起点终点放到脚本里面 挂脚本的物体得有LineRenderer组件,不然会报错(下面上代码) using System.Collections; using System.C 阅读全文
posted @ 2020-12-22 17:35 剑起苍穹 阅读(1757) 评论(2) 推荐(0)
摘要: Unity脚本生命周期 运行顺序 Awake > OnEnable > Start > FixedUpdate > Update > LateUpdate > OnGUI > OnDisable > OnDestroy 1.Vector3.MoveTowards (匀速运动到目标点) 2.Vecto 阅读全文
posted @ 2020-11-17 10:13 剑起苍穹 阅读(338) 评论(0) 推荐(0)
摘要: //获取系统麦克风音量 //private int GetCurrentSpeakerVolume() //{ // int volume = 0; // var enumerator = new MMDeviceEnumerator(); // //获取音频输出设备 // IEnumerable< 阅读全文
posted @ 2020-10-31 10:55 剑起苍穹 阅读(2005) 评论(0) 推荐(0)
摘要: 1.拖拽的面板始终显示在最上层 using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; /// <summary> /// UI面板拖 阅读全文
posted @ 2020-10-26 11:27 剑起苍穹 阅读(818) 评论(0) 推荐(0)
摘要: 简单记录一下 1. Fileinfo和Directoryinfo 对于文件和文件夹的操作,Fileinfo和Directoryinfo是对文件和文件夹进行一些属性类的操作,比如文件的创造,移动,删除,重建,是不能对文件里面具体的内容进行操作的。 FileInfo 类 fileinfo类是对于文件的操 阅读全文
posted @ 2020-10-25 22:30 剑起苍穹 阅读(2701) 评论(0) 推荐(0)
摘要: unity打开本地文件 代码如下 using System; using System.Collections; using System.Collections.Generic; using System.Runtime.InteropServices; using UnityEngine; // 阅读全文
posted @ 2020-10-20 14:13 剑起苍穹 阅读(3937) 评论(0) 推荐(1)
摘要: 简单记录一下,不喜勿喷 读取文件方法 public void ReadAccount() { string[] RawString = System.IO.File.ReadAllLines(@"Data\Account.txt"); //路径 for(int i = 0; i < RawStrin 阅读全文
posted @ 2020-10-15 10:20 剑起苍穹 阅读(2954) 评论(0) 推荐(0)
摘要: 1. 首先先创建一个Render TexTure 在创建一个RawImage, 再把创建好的Render TexTure (我是随意起的名字,你们自己看着起) ,挂载到 RawImage 的Texture的地方 如下图所示 2.在创建Video Player组件 把Render Texture 挂上 阅读全文
posted @ 2020-10-13 15:53 剑起苍穹 阅读(11501) 评论(0) 推荐(2)
摘要: 下面直接上代码 using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; /// <summary> /// ***************Unity文字逐 阅读全文
posted @ 2020-10-12 11:23 剑起苍穹 阅读(2362) 评论(0) 推荐(1)
摘要: 下面直接上代码 1.计时器的实现 第一种方法 /// <summary> /// 秒表的实现方法 创建一个Text 挂在上面即可 /// </summary> private float timeSpend = 0; private int hour; //小时 private int minute 阅读全文
posted @ 2020-10-12 10:45 剑起苍穹 阅读(1998) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 下一页
/*鼠标点击特效*/