Depth of Field 3.4 is a common postprocessing effect that simulates the properties of a camera lens. The name refers to the fact that the effect has had significant performance and feature improvements in Unity 3.4. 景深3.4特效是一种常见的模拟相机透镜的后处理特效.它的名字反映了在…
一般在游戏中,主角或者怪物会受到减速效果,或者攻击速度减慢等类似的状态.本身动作减速的同时,衔接在角色上的特效也需要改变相应的播放速度.一般特效有三个游戏组件: 关键点就是改变Animator,Animation和Particle System的Speed这个速度变量.就可以随意的控制特效的播放速度了. 代码如下: using UnityEngine; using System.Collections; public class EffectSpeedControl : Mon…