Trails モジュールはパーティクルにトレイルを加えるのに使用されます。このモジュールのプロパティの多くは Trail Renderer コンポーネントと共通していますが、Trails モジュールにはトレイルをパーティクルに簡単に設定したり、パーティクルのさまざまなプロパティを継承したりする機能があります。トレイルは、弾丸、煙、魔法を表すような表現など様々なエフェクトに役立ちます。
プロパティ | 機能 |
---|---|
Mode | パーティクルシステムのトレイルの生成方法を選択します。 - Particle__モードは、各パーティクルがその通り道に静止したトレイルを残す効果を作ります。 - Ribbon__ モードは、各パーティクルの年齢に基づいてつながるリボン状のトレイルを作成します。 |
Ratio | 0 から 1 の範囲の値で、トレイルが割り当てられたパーティクルの比率を指定します。トレイルはランダムに割り当てられるため、この値は確率を示します。 |
Lifetime | トレイル内の各頂点の生存期間。属しているパーティクルの存続期間の乗数で指定します。新しい頂点がトレイルに追加されると、頂点は存続期間より長く存続した後に消えます。 |
Minimum Vertex Distance | トレイルに新しい頂点が加えられる前に、パーティクルが移動する距離を指定します。 |
World Space | 有効にすると、トレイルの頂点は、Simulation Space を Local にしてもパーティクルシステムのゲームオブジェクトに連動しません。代わりに、トレイルの頂点は World に置かれ、パーティクルシステムの動きは無視されます。 |
Die With Particles | 有効にすると、パーティクルが消滅するとすぐに、トレイルは消えます。有効でない場合、残っているトレイルはその残りの生存期間に基づいて自然に消滅します。 |
Ribbon Count | パーティクルシステム全体でレンダリングするリボンの数を選択します。値 1 は、リボンを 1 つ作成し、各パーティクルをつなげます。値が 1 より大きい場合は、N 番目のパーティクルごとにリボンを作成します。 たとえば、値が 2 の時は、1 つのリボンがパーティクル 1、3、5 をつなぎ、他のリボンがパーティクル 2、4、6 をつなぎます。パーティクルの順序は、その年齢に基づいて決定されます。 |
Split Sub Emitter Ribbons | 補助的なエミッターとして使用されるシステムで有効にすると、同じ親システムから生成されたパーティクルが 1 つのリボンを共有します。 |
Texture Mode | トレイルに適用されるテクスチャをその全体の長さに沿って伸ばすのか、または、N ユニットごとに距離に対して繰り返するのかを選択します。繰り返し率は、Material の Tiling パラメーターに基づいて制御されます。 |
Size affects Width | 有効にすると、トレイル幅はパーティクルサイズによって乗算されます。 |
Size affects Lifetime | 有効にすると、トレイルの生存期間はパーティクルサイズによって乗算されます。 |
Inherit Particle Color | 有効にすると、トレイルの色はパーティクルの色によって調節されます。 |
Color over Lifetime | このカーブで、アタッチされているパーティクルの生存期間にわたりトレイル全体の色を制御します。 |
Width over Trail | このカーブで、トレイル全長にわたる幅を制御します。 |
Color over Trail | このカーブで、トレイル全長にわたる色を制御します。 |
Generate Lighting Data | 有効にすると、法線と接線を含むトレイルジオメトリが生成されます。これにより、例えば、標準シェーダーやカスタムシェーダーなどを通してシーンライティングを用いるマテリアルを使うことが可能になります。 |
2017–07–27 修正されたページ
Size affects Width、Size affects Lifetime、Color over Lifetime、Width over Trail、Color over Trail、Generate Lighting Data は Unity 2017.1 で追加NewIn20171
Particle モードは Unity 2017.3 で追加NewIn20173
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.