Version: 2021.3
言語: 日本語
Color over Lifetime module
Size Over Lifetime モジュール

Color by Speed module

毎秒の距離ユニットの速度にもとづいて変化するように、パーティクルの色をこのモジュールで設定できます。

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

プロパティ 機能
Color Speed Range で定義されているパーティクルのカラーグラデーション
スピード範囲 速度範囲の最大値と最小値。カラーグラデーションはこの速度範囲にマップされます(範囲外の速度のパーティクルはグラデーションの端にマップされます)。

説明

スパークの様に、燃えたり光ったりするパーティクルでは、空気中を素早く移動する際により明るく燃え上がる傾向にあります(より多くの酸素に触れるからです)が、その後動きが遅くなるにつれてほのかに薄暗くなります。このことをシミュレートするために、速度範囲の最大値に白、最小値に赤のグラデーションをもつ Color By Speed を使用します (スパークの例では、動きの早いパーティクルは白く、遅いパーティクルは赤く見えます)。

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