Trails モジュールはパーティクルにトレイルを加えるのに使用されます。このモジュールのプロパティーの多くは Trail Renderer コンポーネントと共通していますが、Trails モジュールにはトレイルをパーティクルに簡単に設定したり、パーティクルのさまざまなプロパティーを継承したりする機能があります。トレイルは、弾丸、煙、魔法を表すような表現など様々なエフェクトに役立ちます。
プロパティー | 説明 |
---|---|
Ratio | A value between 0 and 1, describing the proportion of particles that have a Trail assigned to them. Trails are assigned randomly, so this value represents a probability. |
Lifetime | トレイル内の各頂点の生存期間。属しているパーティクルの存続期間の乗数で指定します。新しい頂点がトレイルに追加されると、頂点は存続期間より長く存続した後に消えます。 |
Minimum Vertex Distance | トレイルに新しい頂点が加えられる前に、パーティクルが移動する距離を指定します。 |
Texture Mode | トレイルに適用されるテクスチャをその全体の長さに沿って伸ばすのか、または、N ユニットごとに距離に対して繰り返するのかを選択します。繰り返し率は、Material の Tiling パラメーターに基づいて制御されます。 |
World Space | 有効にすると、トレイルの頂点は、Simulation Space を Local にしてもパーティクルシステムのゲームオブジェクトに連動しません。代わりに、トレイルの頂点は World に置かれ、パーティクルシステムの動きは無視されます。 |
Die With Particles | If enabled (the box is checked), Trails vanish instantly when their particles die. If not enabled (the box is unchecked) the remaining Trail expires naturally based on its own remaining lifetime. |
Size affects Width | 有効にすると、トレイル幅はパーティクルサイズによって乗算されます。 |
Size affects Lifetime | 有効にすると、トレイルの生存期間はパーティクルサイズによって乗算されます。 |
Inherit Particle Color | 有効にすると、トレイルの色はパーティクルの色によって調節されます。 |
Color over Lifetime | このカーブで、アタッチされているパーティクルの生存期間にわたりトレイル全体の色を制御します。 |
Width over Trail | このカーブで、トレイル全長にわたる幅を制御します。 |
Color over Trail | このカーブで、トレイル全長にわたる色を制御します。 |
Generate Lighting Data | If enabled (the box is checked), the Trail geometry is built with Normals and Tangents included. This allows them to use Materials that use the scene lighting, for example via the Standard Shader, or by using a custom shader. |
2017–05–31 編集レビュー を行って修正されたページ
Size affects Width, Size affects Lifetime, Color over Lifetime, Width over Trail, Color over Trail, Generate Lighting Data added in Unity 2017.1NewIn20171
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.