上一页 1 ··· 6 7 8 9 10 11 12 下一页
摘要: 记录下来方便看 1. 哈希表(HashTable)又叫做散列表,根据关键码值(即键值对)而直接访问的数据结构。 2. Add 方法 为了给集合添加成员,Add 方法需要首先检查来确保成员不在集合内。如果成员在集合内,那么什么操作也不 做。如果成员不在集合内,则把它添加到散列表中。 public vo 阅读全文
posted @ 2019-12-16 14:17 剑起苍穹 阅读(724) 评论(0) 推荐(0) 编辑
摘要: 下面插入代码 本脚本挂在你不想销毁的物体上面 using System.Collections; using System.Collections.Generic; using UnityEngine; public class ExitApp : MonoBehaviour { public st 阅读全文
posted @ 2019-12-09 12:47 剑起苍穹 阅读(1190) 评论(0) 推荐(1) 编辑
摘要: 这个shader可以做慢慢消失的效果,就是消融效果 shader代码 Shader "Kaima/Dissolve/EdgeColor" { Properties { _MainTex ("Texture", 2D) = "white" {} _NoiseTex("Noise", 2D) = "wh 阅读全文
posted @ 2019-12-03 14:38 剑起苍穹 阅读(1692) 评论(0) 推荐(0) 编辑
摘要: Unity中的透明效果之开启深度写入半透明效果 第一种 shader方式 Shader "Custom/Shadder" { Properties{ _Color("Color", Color) = (1,1,1,1) _MainTex("MainTex", 2D) = "white" {} _Al 阅读全文
posted @ 2019-11-29 11:02 剑起苍穹 阅读(11418) 评论(0) 推荐(0) 编辑
摘要: 枚举ForceMode 的值: Force 添加一个可持续力到刚体,使用它的质量。 Acceleration 添加一个可持续加速度到刚体,忽略它的质量。 Impulse 添加一个瞬间冲击力到刚体,使用它的质量。 VelocityChange 添加一个瞬间速度变化给刚体,忽略它的质量。 Rigidbo 阅读全文
posted @ 2019-11-22 14:55 剑起苍穹 阅读(11794) 评论(0) 推荐(1) 编辑
摘要: using System.Collections; using System.Collections.Generic; using UnityEngine; public class ShaiFenJi : MonoBehaviour { public GameObject wuTi;//物体 pr 阅读全文
posted @ 2019-11-04 17:26 剑起苍穹 阅读(686) 评论(0) 推荐(0) 编辑
摘要: 两种方式,亲测可用 阅读全文
posted @ 2019-10-09 08:47 剑起苍穹 阅读(1648) 评论(0) 推荐(1) 编辑
摘要: 可以做全自动的动画,只要设置好路径点就可以了, private Transform[] ways1;//路径点的位置 public Transform tagret;//移动的物体 private int index1; private void Start() { ways1 = JieLine. 阅读全文
posted @ 2019-09-26 15:06 剑起苍穹 阅读(7602) 评论(1) 推荐(0) 编辑
摘要: 代码添加 EventTrigger 方法 检测鼠标进入UI显示ui的名字非常好用 using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Events; usin 阅读全文
posted @ 2019-09-16 10:43 剑起苍穹 阅读(2322) 评论(0) 推荐(0) 编辑
摘要: 粘贴直接就能用 阅读全文
posted @ 2019-09-05 13:17 剑起苍穹 阅读(2127) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 下一页
/*鼠标点击特效*/