上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页
摘要: 1.首先你要先下载一个插件:Embedded Browser 有钱的可以考虑商店下载,后面我会给一个地址(你懂的) 1.可以直接嵌入浏览器网页 2.可以将html文件放入与Assets文件夹同级的BrowserAssets(必须一致,必须是这个文件夹),这种方式相对快一些。此外,在url的链接上面把 阅读全文
posted @ 2020-12-28 15:35 剑起苍穹 阅读(5919) 评论(3) 推荐(0) 编辑
摘要: 简单记录,方便使用 创建好背包格子 格子的tag值需要设置成Grid 物品tag值需要设置成 Good (自己设置成什么都行) 设置其他参数 需要在脚本中修改 下面上代码 一个继承 MonoBehaviour 一个继承 Button 第一种 using System; using UnityEngi 阅读全文
posted @ 2020-12-24 15:00 剑起苍穹 阅读(1648) 评论(0) 推荐(1) 编辑
摘要: 不知道场景里多少面,把脚本放进去运行一下即可,方便优化项目 代码如下 1.获取场景中全部模型的顶点数及面数 using System.Collections; using System.Collections.Generic; using UnityEngine; /// <summary> /// 阅读全文
posted @ 2020-12-23 15:15 剑起苍穹 阅读(4932) 评论(1) 推荐(1) 编辑
摘要: 记录一下,方便使用 第一种是用LineRenderer 创建两个空物体,把两个空物体分开,一个设置成起点,一个终点 如下图 把起点终点放到脚本里面 挂脚本的物体得有LineRenderer组件,不然会报错(下面上代码) using System.Collections; using System.C 阅读全文
posted @ 2020-12-22 17:35 剑起苍穹 阅读(1542) 评论(0) 推荐(0) 编辑
摘要: Unity脚本生命周期 运行顺序 Awake > OnEnable > Start > FixedUpdate > Update > LateUpdate > OnGUI > OnDisable > OnDestroy 1.Vector3.MoveTowards (匀速运动到目标点) 2.Vecto 阅读全文
posted @ 2020-11-17 10:13 剑起苍穹 阅读(287) 评论(0) 推荐(0) 编辑
摘要: //获取系统麦克风音量 //private int GetCurrentSpeakerVolume() //{ // int volume = 0; // var enumerator = new MMDeviceEnumerator(); // //获取音频输出设备 // IEnumerable< 阅读全文
posted @ 2020-10-31 10:55 剑起苍穹 阅读(1783) 评论(0) 推荐(0) 编辑
摘要: 1.拖拽的面板始终显示在最上层 using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; /// <summary> /// UI面板拖 阅读全文
posted @ 2020-10-26 11:27 剑起苍穹 阅读(758) 评论(0) 推荐(0) 编辑
摘要: 简单记录一下 1. Fileinfo和Directoryinfo 对于文件和文件夹的操作,Fileinfo和Directoryinfo是对文件和文件夹进行一些属性类的操作,比如文件的创造,移动,删除,重建,是不能对文件里面具体的内容进行操作的。 FileInfo 类 fileinfo类是对于文件的操 阅读全文
posted @ 2020-10-25 22:30 剑起苍穹 阅读(2308) 评论(0) 推荐(0) 编辑
摘要: unity打开本地文件 代码如下 using System; using System.Collections; using System.Collections.Generic; using System.Runtime.InteropServices; using UnityEngine; // 阅读全文
posted @ 2020-10-20 14:13 剑起苍穹 阅读(3679) 评论(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 剑起苍穹 阅读(2830) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页
/*鼠标点击特效*/