Version: Unity 6 Beta (6000.0)
Language : English
Inherit Velocity module
Force over Lifetime module

Lifetime by Emitter Speed module

This module controls the initial lifetime of each particle based on the speed of the emitter when the particle spawns. It multiplies the start lifetime of particles by a value that depends on the speed of the object that spawned them. For most Particle Systems, this is the GameObjectThe fundamental object in Unity scenes, which can represent characters, props, scenery, cameras, waypoints, and more. A GameObject’s functionality is defined by the Components attached to it. More info
See in Glossary
velocity, but for sub-emitters, the velocity comes from the parent particle that the sub-emitter particle originated from.

Using the Lifetime by Emitter Speed module

This module is part of the Particle SystemA component that simulates fluid entities such as liquids, clouds and flames by generating and animating large numbers of small 2D images in the scene. More info
See in Glossary
component. When you create a new Particle System GameObject, or add a Particle System component to an exiting GameObject, Unity adds the Lifetime by Emitter Speed module to the Particle System. By default, Unity disables this module. To create a new Particle System and enable this module:

  1. Click GameObject > Effects > Particle System.
  2. In the InspectorA Unity window that displays information about the currently selected GameObject, asset or project settings, allowing you to inspect and edit the values. More info
    See in Glossary
    , find the Particle System component.
  3. In the Particle System component, find the Lifetime by Emitter Speed 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 Lifetime by Emitter Speed module API documentation.

Properties

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.

Property Function
Multiplier The multiplier to apply to the particle’s initial lifetime. The module uses this value differently depending on the curve mode you set. The curve modes are:
Constant: Uses the constant multiplier value you set for this property. Using this curve mode ignores the Speed Range property.
Curve: Takes the emitter’s speed, maps it to a value between 0 and 1 based on the Speed Range, then uses the normalized value to sample the curve.
Random Between Two Constants: Sets a random multiplier for each particle between the two values you set for this property. Using this curve mode ignores the Speed Range property.
Random Between Two Curves: Takes the emitter’s speed, maps it to a value between 0 and 1 based on the Speed Range, then uses the normalized value to sample each curve. For each particle, the module sets the multiplier to a random value between the two samples.
Speed Range The minimum and maximum emitter speeds the Particle System maps to a value along the Multiplier curve. If the emitter’s speed is equal to the first value, the multiplier is the value at the start of the curve. If the emitter’s speed is equal to the second value, the multiplier is the value at the end of the curve.
This property is only relevant if the curve mode for Multiplier is set to Curve or Random Between Two Curves.
Inherit Velocity module
Force over Lifetime module
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961