# ColorByLife模块

# 概述

ColorByLife(颜色变化模块),用于设置粒子生命周期中颜色的变化。

image.png

点击渐变色区域,会弹出如下的渐变色编辑框。

image.png

鼠标右键渐变色区域上边界的空间,可以增/删透明度的关键帧。鼠标右键渐变色区域下边界的空间,可以增/删RGB颜色的关键帧。

鼠标左键选中拖动三角形,或修改Location的值,来调整关键帧的位置。

# 属性描述

属性 功能 类型
gColor 粒子生命周期中颜色的变化。 engine.Particle.AdvancedProperty.OneColorProperty
engine.Particle.AdvancedProperty.TwoColorsProperty
engine.Particle.AdvancedProperty.GradientProperty
engine.Particle.AdvancedProperty.TwoGradientsProperty