摘要:
记录下来方便看 1. 哈希表(HashTable)又叫做散列表,根据关键码值(即键值对)而直接访问的数据结构。 2. Add 方法 为了给集合添加成员,Add 方法需要首先检查来确保成员不在集合内。如果成员在集合内,那么什么操作也不 做。如果成员不在集合内,则把它添加到散列表中。 public vo 阅读全文
摘要:
下面插入代码 本脚本挂在你不想销毁的物体上面 using System.Collections; using System.Collections.Generic; using UnityEngine; public class ExitApp : MonoBehaviour { public st 阅读全文
摘要:
这个shader可以做慢慢消失的效果,就是消融效果 shader代码 Shader "Kaima/Dissolve/EdgeColor" { Properties { _MainTex ("Texture", 2D) = "white" {} _NoiseTex("Noise", 2D) = "wh 阅读全文
摘要:
Unity中的透明效果之开启深度写入半透明效果 第一种 shader方式 Shader "Custom/Shadder" { Properties{ _Color("Color", Color) = (1,1,1,1) _MainTex("MainTex", 2D) = "white" {} _Al 阅读全文
摘要:
枚举ForceMode 的值: Force 添加一个可持续力到刚体,使用它的质量。 Acceleration 添加一个可持续加速度到刚体,忽略它的质量。 Impulse 添加一个瞬间冲击力到刚体,使用它的质量。 VelocityChange 添加一个瞬间速度变化给刚体,忽略它的质量。 Rigidbo 阅读全文
摘要:
using System.Collections; using System.Collections.Generic; using UnityEngine; public class ShaiFenJi : MonoBehaviour { public GameObject wuTi;//物体 pr 阅读全文
摘要:
两种方式,亲测可用 阅读全文
摘要:
可以做全自动的动画,只要设置好路径点就可以了, private Transform[] ways1;//路径点的位置 public Transform tagret;//移动的物体 private int index1; private void Start() { ways1 = JieLine. 阅读全文
摘要:
代码添加 EventTrigger 方法 检测鼠标进入UI显示ui的名字非常好用 using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Events; usin 阅读全文