Version: 2022.1
言語: 日本語
Force over Lifetime module
Color by Speed module

Color over Lifetime module

このモジュールはパーティクルの色と透明度が生存期間の時間経過によってどう変化するかを設定します。

Using the Color over Lifetime 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 Color over Lifetime 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 Color over Lifetime 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 Color over Lifetime 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.

プロパティ 機能
Color 寿命の時間経過で変わっていくパーティクルのカラーグラデーション。グラデーションバーの左端はパーティクルの寿命の開始点を示します。右端はパーティクルの寿命の終点を示します。

上の図で、パーティクルはオレンジ色で開始し、時間がたつにつれ色あせて透明度が増し、その寿命の終わりには見えなくなります。

説明

さまざまな種類の自然な、または、幻想的なパーティクルの色は時間経過によって変化し、そのため、このプロパティには多くの利用方法があります。例えば、白くて熱いスパークは空気を走り抜けながら冷めるでしょうし、魔法の呪文は爆発して虹色になるかもしれません。しかし、同時に重要なことはアルファ(透明度)の変化です。パーティクルは寿命の終わりに近づくにつれて燃え尽き、消えたり散っていくのが一般的です(例えば、熱いスパーク、花火、煙のパーティクル)。簡易な衰退するグラデーションによってこの効果を生み出すことができます。

When also using the Start Color property, this module multiples the 2 colors together, to get the final particle color.

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