Appearance
explodeLight
ExplodeLight
Kind: global class
new ExplodeLight(options)
爆炸光特效
Param | Type | Description |
---|---|---|
options | object | 参数 |
options.meshs | Array | 需要爆炸光特效的模型数组 |
options.diameter | object | 光环的最大直径 |
options.thickness | number | 数字,光环粗细 |
options.speed | number | 数字,光环动画速度 |
options.dColor | number | RGB 颜色,默认颜色 |
options.lColor | number | RGB 颜色,光环的颜色 |
options.lColor | number | RGB 颜色,光环的颜色 |
explodeLight.enabled(bool)
开启或关闭,布尔值,true 开启科技风格和扫光,false 恢复原材质和关闭扫光。
Kind: instance method of ExplodeLight
Param | Type | Description |
---|---|---|
bool | boolean | 是否开启 |
explodeLight.changeSpeed(value)
改变爆炸扫光的速度
Kind: instance method of ExplodeLight
Param | Type | Description |
---|---|---|
value | number | 扫光速度 |
explodeLight.destroy()
销毁动效
Kind: instance method of ExplodeLight