上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页
摘要: 1.直接上代码 根据自己需要修改 wut.position 表示3d物体 jiantou.position 表示UI效果是UI跟随物体显示当物体在摄像机视口里面,能看到UI在物体上面,相反就不显示,如果不判断 物体不在摄像机视口里面 UI错误显示在屏幕上,位置不对 Vector3 vector = 阅读全文
posted @ 2021-04-23 16:26 剑起苍穹 阅读(997) 评论(0) 推荐(0)
摘要: 1.方便快捷替换所有text字体 #if UNITY_EDITOR using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; using UnityEngine. 阅读全文
posted @ 2021-03-29 13:18 剑起苍穹 阅读(1769) 评论(0) 推荐(1)
摘要: 第一种方法 1.首先下载一个dll文件 Interop.SpeechLib.dll 放在unity Plugins文件夹里就可以了 下面上代码 脚本挂在任意地方运行即可 using System.Collections; using System.Collections.Generic; using 阅读全文
posted @ 2021-02-25 14:09 剑起苍穹 阅读(4945) 评论(2) 推荐(0)
摘要: 下面上视频 代码都在资源包里我就不贴了,有视频可以看一下 有完整demo,(资源包很小的)下面有链接,链接失效请回复我,看到会及时回复(应该不会失效,哈哈哈!) 链接:https://pan.baidu.com/s/1m45EwidbCIiUMIUmf5DLtw 提取码:yi4t 阅读全文
posted @ 2021-01-29 14:58 剑起苍穹 阅读(474) 评论(11) 推荐(0)
摘要: Unity创建一个新项目 MainCamera 的 TargetDisplay设置成Display1 在创建一个camera 设置成Display2 设置成 一个摄像机看着一个模型 在创建一个空物体挂上脚本 脚本如下 using System.Collections; using System.Co 阅读全文
posted @ 2021-01-14 11:12 剑起苍穹 阅读(6881) 评论(1) 推荐(1)
摘要: 1.比较时间的大小 using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public class Time_Size : MonoBehaviour { public 阅读全文
posted @ 2021-01-04 14:04 剑起苍穹 阅读(1630) 评论(0) 推荐(0)
摘要: 效果如下 代码如下 using System.Collections; using System.Collections.Generic; using UnityEngine; /// <summary> /// 脚本挂到物体上 /// </summary> public class FeiDao_ 阅读全文
posted @ 2020-12-30 14:48 剑起苍穹 阅读(1492) 评论(2) 推荐(0)
摘要: 1.首先你要先下载一个插件:Embedded Browser 有钱的可以考虑商店下载,后面我会给一个地址(你懂的) 1.可以直接嵌入浏览器网页 2.可以将html文件放入与Assets文件夹同级的BrowserAssets(必须一致,必须是这个文件夹),这种方式相对快一些。此外,在url的链接上面把 阅读全文
posted @ 2020-12-28 15:35 剑起苍穹 阅读(6243) 评论(3) 推荐(0)
摘要: 简单记录,方便使用 创建好背包格子 格子的tag值需要设置成Grid 物品tag值需要设置成 Good (自己设置成什么都行) 设置其他参数 需要在脚本中修改 下面上代码 一个继承 MonoBehaviour 一个继承 Button 第一种 using System; using UnityEngi 阅读全文
posted @ 2020-12-24 15:00 剑起苍穹 阅读(1932) 评论(0) 推荐(1)
摘要: 不知道场景里多少面,把脚本放进去运行一下即可,方便优化项目 代码如下 1.获取场景中全部模型的顶点数及面数 using System.Collections; using System.Collections.Generic; using UnityEngine; /// <summary> /// 阅读全文
posted @ 2020-12-23 15:15 剑起苍穹 阅读(5538) 评论(1) 推荐(1)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页
/*鼠标点击特效*/