Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 1.48 KB

motion-streak.md

File metadata and controls

26 lines (18 loc) · 1.48 KB

MotionStreak(拖尾)组件参考

MotionStreak(拖尾)是运动轨迹,用于在游戏对象的运动轨迹上实现拖尾渐隐效果。

motionstreak

点击 属性检查器 下方的 添加组件 按钮,然后从 Effects 中选择 MotionStreak,即可添加 MotionStreak 组件到节点上。

具体的使用方式可以参考 MotionStreak (GitHub | Gitee) 范例。

add motionStreak

拖尾的脚本接口请参考 MotionStreak API

MotionStreak 属性

属性 功能说明
CustomMaterial 自定义材质,使用方法请参考 自定义材质
Preview 是否启用预览。若勾选该项,则可在 场景编辑器 中预览拖尾效果
FadeTime 拖尾的渐隐时间,以秒为单位。
MinSeg 最小的片段长度(渐隐片段的大小)。拖尾条带相连顶点间的最小距离。
Stroke 拖尾的宽度。
Texture 拖尾的贴图。
FastMode 是否启用快速模式。当启用快速模式,新的顶点会被更快地添加,但精度较低。
Color 拖尾的颜色。