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