Version: 2021.2
Main module
Shape module

Emission 模块

The properties in this module affect the rate and timing of Particle System emissions.

Using the Emission module

This module is part of the Particle System component. When you create a new Particle System GameObject, or add a Particle System component to an exiting GameObject, Unity adds the Emission module to the Particle System. By default, Unity enables this module. To create a new Particle System and enable this module:

  1. Click GameObject > Effects > Particle System.
  2. In the Inspector, find the Particle System component.
  3. In the Particle System component, find the Emission module fold-out.
  4. To the left of the fold-out header, enable the checkbox.

API

Since this module is part of the Particle System component, you access it through the ParticleSystem class. For information on how to access it and change values at runtime, see the Emission module API documentation.

属性

For some properties in this section, you can use different modes to set their value. For information on the modes you can use, see Varying properties over time.

属性 功能
Rate over Time 每个时间单位发射的粒子数。
Rate over Distance 每个移动距离单位发射的粒子数。
Bursts 爆发是指生成粒子的事件。通过这些设置可允许在指定时间发射粒子。
    Time 设置发射爆发粒子的时间(粒子系统开始播放后的秒数)。
    Count 设置可能发射的粒子数的值。
    Cycles 设置播放爆发次数的值。
    Interval 设置触发每个爆发周期的间隔时间(以秒为单位)的值。
    Probability 控制每个爆发事件生成粒子的可能性。较高的值使系统产生更多的粒子,而值为 1 将保证系统产生粒子。

详细信息

根据曲线,发射速率可以是恒定的,也可以在系统的生命周期内变化。如果激活 Rate over Distance 模式,则父对象移动的每个距离单位将释放一定数量的粒子。此模式对于模拟实际由对象运动产生的粒子非常有用(例如,泥路上车轮留下的尘土)。

如果激活 Rate over Time 模式,则无论父对象如何移动,每秒都会发射所需数量的粒子。此外,还可添加在特定时间出现的额外粒子爆发(例如,蒸汽火车烟囱产生一股股的烟雾)。


  • 2018–10–19 页面已修订

  • 在 Unity 2018.3 中向 Particle System Emission 模块添加了爆发概率 NewIn20183

Main module
Shape module