Appearance
title: 全局動畫管理器 ?
全局動畫管理器 ?
全局動畫管理器(AnimationManager) ?
Kind: global class
new AnimationManager() ?
全局動畫管理器
animationManager.regist(name, func) ? Array ?
動畫注冊
Kind: instance method of AnimationManager
Returns: Array - 動畫數(shù)組
| Param | Type | Description |
|---|---|---|
| name | * | 動畫名字 |
| func | * | 執(zhí)行動畫的方法 |
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 ?
恢復(fù)動畫
Kind: instance method of AnimationManager
Returns: boolean - true
| Param | Type | Description |
|---|---|---|
| name | * | 動畫名稱 |