Version: 2021.3
言語: 日本語
Inherit Velocity モジュール
Force over Lifetime module

Lifetime by Emitter Speed module

このモジュールは、パーティクルがスポーンするときのエミッターの速度に基づいて、各パーティクルの初期生存期間を制御します。パーティクルの初期生存期間に、パーティクルをスポーンしたオブジェクトの速度に応じた値をかけます。ほとんどのパーティクルシステムでは、これはゲームオブジェクトの速度ですが、サブエミッターの場合は、サブエミッターパーティクルの元になった親パーティクルの速度になります。

Using the Lifetime by Emitter Speed 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 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 Inspector, 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.

プロパティ

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.

プロパティ 機能
Multiplier パーティクルの初期生存期間に適用する乗数。モジュールはこの値を、設定したカーブモードに応じて異なる方法で使用します。カーブモードは以下の通りです。
Constant: このプロパティに設定した定数の乗数値を使用します。このカーブモードを使用すると、Speed Range プロパティは無視されます。
Curve: エミッターの速度を取得し、Speed Range に基づいて0 から 1 のあいだの値にマップし、その正規化された値を使用してカーブをサンプリングします。
Random Between Two Constants: このプロパティに設定した 2 つの値の間に、各パーティクルにランダムな乗数を設定します。 このカーブモードを使用すると、Speed Range プロパティは無視されます。
• Random Between Two Curves: エミッターの速度を取得し、Speed Rangeに基づいて 0 から 1 の値にマップし、その正規化された値を使用して各カーブをサンプリングします。 モジュールは、各パーティクルに対して乗数を 2 つのサンプル間のランダムな値に設定します。
Speed Range パーティクルシステムが Multiplier カーブに沿ってマップするエミッター速度の最小値と最大値。エミッターの速度が 1 つ目の値に等しい場合、乗数はカーブの始点の値になります。
このプロパティは、Multiplier のカーブモードが Curve または Random Between Two Curves に設定されている場合にのみ関連します。
Inherit Velocity モジュール
Force over Lifetime module
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961