Appearance
title: sweepLight
sweepLight
SweepLight
Kind: global class
new SweepLight(viewer, options)
白膜扫光
| Param | Type | Description |
|---|---|---|
| viewer | ||
| options | object | 参数 |
| options.diameter | object | 光环的最大直径 |
| options.thickness | number | 数字,光环粗细 |
| options.speed | number | 数字,光环动画速度 |
| options.uColor | number | RGB 颜色,默认颜色 |
| options.tColor | number | RGB 颜色,光环的颜色 |
sweepLight.enabled(bool)
开启或关闭,布尔值,true 开启科技风格和扫光,false 恢复原材质和关闭扫光。
Kind: instance method of SweepLight
| Param | Type | Description |
|---|---|---|
| bool | boolean | 是否开启 |
sweepLight.destroy()
销毁动效
Kind: instance method of SweepLight