Version: 2021.3
言語: 日本語
Limit Velocity over Lifetime module
Lifetime by Emitter Speed module

Inherit Velocity モジュール

Use this module on subemitters. Each particle in the parent system can spawn particles in the subemitter. This module reads the velocity from the parent particle and controls how the speed of the subemitter particles reacts to that velocity over time.

Using the Inherit Velocity 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 Inherit Velocity 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 Inherit Velocity 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 Inherit Velocity 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.

プロパティ 機能
Mode どのようにエミッター速度をパーティクルに適用するかを指定します。
    Current エミッターの現在の速度をすべてのフレームで、すべてのパーティクルに適用します。例えば、エミッターが速度を落とせば、すべてのパーティクルも速度を落とします。
    Initial 各パーティクルが発生したときに、エミッターの速度をいったん適用します。パーティクルが発生した後にエミッターの速度に変化が起きても、パーティクルには影響しません。
Multiplier パーティクルが継承するエミッターの速度の割合

詳細

このエフェクトは、車の排気ガスやロケットの噴射、蒸気機関車の煙突から出る蒸気など、動いているオブジェクトからパーティクルを放出する場合や、パーティクルを放出するオブジェクトの何割かの速さで、パーティクルが移動しているようなときに役立ちます。このモジュールは、 主要モジュールSimulation SpaceWorld に設定されているときのみ、効力があります。

時間の経過とともに、エフェクトに影響を与えるためにカーブを使用することも可能です。例えば、時間とともに減衰する強い引力を新しく作成したパーティクルに適用することができます。これは、時間とともにゆっくりと漂い、それを放出した機関車についてゆくのを停止する蒸気機関車の蒸気に利用できます。

Unity calculates the emitter’s velocity in one of two ways: * Based on the velocity of an attached Rigidbody component * Based on how far the Particle System’s Transform component travelled during the current frame

To specify the method Unity uses, see the Main module’s Emitter Velocity property:

Limit Velocity over Lifetime module
Lifetime by Emitter Speed module
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961