Skip to content
On this page

title: sweepLight

sweepLight

SweepLight

Kind: global class

new SweepLight(viewer, options)

白膜扫光

ParamTypeDescription
viewer
optionsobject参数
options.diameterobject光环的最大直径
options.thicknessnumber数字,光环粗细
options.speednumber数字,光环动画速度
options.uColornumberRGB 颜色,默认颜色
options.tColornumberRGB 颜色,光环的颜色

sweepLight.enabled(bool)

开启或关闭,布尔值,true 开启科技风格和扫光,false 恢复原材质和关闭扫光。

Kind: instance method of SweepLight

ParamTypeDescription
boolboolean是否开启

sweepLight.destroy()

销毁动效

Kind: instance method of SweepLight