new AnimationPlayer(options)
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object | 包含以下参数的对象 Properties
|
Members
-
animationCount :Number
-
获取模型所包含的动画数
-
multiplier :Number
-
获取或设置动画播放速度,默认为1
Methods
-
get(index)
-
根据序号获取动画
Parameters:
Name Type Description indexNumber 序号
-
pause()
-
暂停播放动画
-
play(options)
-
播放动画
Parameters:
Name Type Description optionsObject 包含以下参数的对象
Properties
Name Type Attributes Default Description indexNumber <optional>
0 动画序号
nameNumber <optional>
动画名称
multiplierNumber <optional>
1 播放倍速
-
playAll(options)
-
播放全部动画
Parameters:
Name Type Description optionsObject Properties
Name Type Attributes Default Description multiplierNumber <optional>
1 播放倍速
-
stop(index)
-
停止播放动画
Parameters:
Name Type Description indexNumber 需要停止的动画序号
-
stopAll()
-
停止全部动画