Version: 2017.1
Lights 模块
Custom Data 模块

Trails 模块

使用此模块可将轨迹添加到一部分粒子。此模块与轨迹渲染器 (Trail Renderer) 组件共享许多属性,但提供了将轨迹轻松附加到粒子以及从粒子继承各种属性的功能。轨迹可用于各种效果,例如子弹、烟雾和魔法视觉效果。

属性

属性: 功能:
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 启用此属性后,即便使用 Local Simulation Space__,轨迹顶点也不会相对于粒子系统的游戏对象移动。相反,轨迹顶点将被置于世界空间中,并忽略粒子系统的任何移动。 | | 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

Lights 模块
Custom Data 模块