10 2020 档案

摘要://获取系统麦克风音量 //private int GetCurrentSpeakerVolume() //{ // int volume = 0; // var enumerator = new MMDeviceEnumerator(); // //获取音频输出设备 // IEnumerable< 阅读全文
posted @ 2020-10-31 10:55 剑起苍穹 阅读(1911) 评论(0) 推荐(0) 编辑
摘要:1.拖拽的面板始终显示在最上层 using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; /// <summary> /// UI面板拖 阅读全文
posted @ 2020-10-26 11:27 剑起苍穹 阅读(787) 评论(0) 推荐(0) 编辑
摘要:简单记录一下 1. Fileinfo和Directoryinfo 对于文件和文件夹的操作,Fileinfo和Directoryinfo是对文件和文件夹进行一些属性类的操作,比如文件的创造,移动,删除,重建,是不能对文件里面具体的内容进行操作的。 FileInfo 类 fileinfo类是对于文件的操 阅读全文
posted @ 2020-10-25 22:30 剑起苍穹 阅读(2578) 评论(0) 推荐(0) 编辑
摘要:unity打开本地文件 代码如下 using System; using System.Collections; using System.Collections.Generic; using System.Runtime.InteropServices; using UnityEngine; // 阅读全文
posted @ 2020-10-20 14:13 剑起苍穹 阅读(3796) 评论(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 剑起苍穹 阅读(2900) 评论(0) 推荐(0) 编辑
摘要:1. 首先先创建一个Render TexTure 在创建一个RawImage, 再把创建好的Render TexTure (我是随意起的名字,你们自己看着起) ,挂载到 RawImage 的Texture的地方 如下图所示 2.在创建Video Player组件 把Render Texture 挂上 阅读全文
posted @ 2020-10-13 15:53 剑起苍穹 阅读(10747) 评论(0) 推荐(2) 编辑
摘要:下面直接上代码 using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; /// <summary> /// ***************Unity文字逐 阅读全文
posted @ 2020-10-12 11:23 剑起苍穹 阅读(2294) 评论(0) 推荐(1) 编辑
摘要:下面直接上代码 1.计时器的实现 第一种方法 /// <summary> /// 秒表的实现方法 创建一个Text 挂在上面即可 /// </summary> private float timeSpend = 0; private int hour; //小时 private int minute 阅读全文
posted @ 2020-10-12 10:45 剑起苍穹 阅读(1888) 评论(0) 推荐(0) 编辑

/*鼠标点击特效*/
点击右上角即可分享
微信分享提示