Appearance
explodeLight ?
ExplodeLight ?
Kind: global class
new ExplodeLight(options) ?
爆炸光特效
| Param | Type | Description |
|---|---|---|
| options | object | 參數(shù) |
| options.meshs | Array | 需要爆炸光特效的模型數(shù)組 |
| options.diameter | object | 光環(huán)的最大直徑 |
| options.thickness | number | 數(shù)字,光環(huán)粗細(xì) |
| options.speed | number | 數(shù)字,光環(huán)動(dòng)畫速度 |
| options.dColor | number | RGB 顏色,默認(rèn)顏色 |
| options.lColor | number | RGB 顏色,光環(huán)的顏色 |
| options.lColor | number | RGB 顏色,光環(huán)的顏色 |
explodeLight.enabled(bool) ?
開啟或關(guān)閉,布爾值,true 開啟科技風(fēng)格和掃光,false 恢復(fù)原材質(zhì)和關(guān)閉掃光。
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() ?
銷毀動(dòng)效
Kind: instance method of ExplodeLight