Appearance
title: 全局动画管理器
全局动画管理器
全局动画管理器(AnimationManager)
Kind: global class
new AnimationManager()
全局动画管理器
animationManager.regist(name, func) ⇒ Array
动画注册
Kind: instance method of AnimationManager
Returns: Array
- 动画数组
Param | Type | Description |
---|---|---|
name | * | 动画名字 |
func | * | 执行动画的方法 |
Example
js
this.viewer.animationManager.regist(
''.concat('electricShield', 'Update_').concat(this.id),
this.update.bind(this)
);
animationManager.unload(name) ⇒ boolean
取消动画的注册
Kind: instance method of AnimationManager
Returns: boolean
- false
Param | Type | Description |
---|---|---|
name | * | 动画名称 |
Example
js
this.viewer.animationManager.unload(''.concat('electricShield', 'Update_').concat(this.id));
animationManager.pause(name) ⇒ boolean
暂停动画
Kind: instance method of AnimationManager
Returns: boolean
- false
Param | Type | Description |
---|---|---|
name | * | 动画名称 |
animationManager.resume(name) ⇒ boolean
恢复动画
Kind: instance method of AnimationManager
Returns: boolean
- true
Param | Type | Description |
---|---|---|
name | * | 动画名称 |