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