new Rain(map, opt)
雨景特效
Parameters:
| Name | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
map |
Glodon.CIMCube | CIMCube实例 | |||||||||||||||
opt |
Object | 雨景特效参数
Properties
|
Methods
-
dispose()
-
释放资源
-
hide()
-
隐藏
-
show()
-
显示
-
update()
-
更新雨效果。
-
updateMyOption(opt)
-
更新参数。
Parameters:
Name Type Description optObject 参数。 Properties
Name Type Argument Default Description darknessNumber 暗度。 densityString <optional>
1.0 密度。 -
updateOption(opt)
-
雨景特效
Parameters:
Name Type Description optObject 雨景特效参数 Properties
Name Type Argument Default Description darknessNumber <optional>
0.5 阴天,天空暗度,0.1~0.9 densityString <optional>
1.0 雨的大小;雨停:none;小雨:small;中雨:normal;大雨:great;