首页 > 代码库 > Unity粒子系统

Unity粒子系统

最近比较清闲,就重新看了一遍例子系统,感觉能把效果做的炫酷对于初学者来说并不是一件容易的事,但是回头想想,最重要的原因可能还是没有把Particle Systems组件研究透吧,温故而知新,一起复习一下粒子系统吧。

下面是Unity5.5.0版本的粒子系统官方文档的翻译

  • Main module//主要模块
  • Emission//发射
  • Shape//形状
  • Velocity Over Lifetime//粒子在生命周期内的速度
  • Limit Velocity Over Lifetime//粒子在生命周期内的极限速度
  • Inherit Velocity//速度继承
  • Force Over Lifetime//粒子在生命周期内的受力
  • Color Over Lifetime//粒子在生命周期内的颜色
  • Color By Speed//颜色随速度变化
  • Size over Lifetime//粒子在生命周期内的大小
  • Size by Speed//大小随速度变化
  • Rotation Over Lifetime//粒子在生命周期内的旋转
  • Rotation By Speed//旋转随速度变化
  • External Forces//外力
  • Noise//噪声
  • Collision//碰撞器
  • Triggers//触发器
  • Sub Emitters//物体发射源
  • Texture Sheet Animation//纹理动画
  • Lights//灯光
  • Trails//拖尾
  • Renderer//渲染
  • Resimulate
  • Selection
  • Bounds

技术分享

 

【Main module】

这个模块包含全局属性,影响全局系统。

 技术分享

 

Property:Function:
Duration//持续
整个粒子系统运行的时间
Looping//循环
如果启用,系统将在其持续时间结束时再次启动并继续重复循环
Prewarm//预热
If enabled, the system will be initialized as though it had already completed a full cycle (only works if Looping is also enabled).
Start Delay//延迟启动
Delay in seconds before the system starts emitting once enabled.
Start Lifetime//生命周期
The initial lifetime for particles.
Start Speed
The initial speed of each particle in the appropriate direction.
3D Start Size Enable this if you want to control the size of each axis seperately.
Start Size The initial size of each particle.
3D Start Rotation Enable this if you want to control the rotation of each axis seperately.
Start Rotation The initial rotation angle of each particle.
Randomize Rotation Direction//随机旋转方向
Causes some particles to spin in the opposite direction.
Start Color The initial color of each particle.
Gravity Modifier//重力修改
Scales the gravity value set in the physics manager. A value of zero will switch gravity off.
Simulation Space//模拟空间
Toggles whether particles are animated in the parent object’s local space (therefore moving with the parent object) or in the world space.
Scaling Mode//扩展模式
Use the scale from the transform. Set to Hierarchy, Local or Shape. Local applies only the particle system transform scale. Shape mode applies only the scale to the start position of the particles.
Play on Awake If enabled, the particle system starts automatically when the object is created.
Max Particles//最大粒子数
The maximum number of particles in the system at once. Older particles will be removed when the limit is reached.委婉

未完待续。。。

Unity粒子系统