MCPcopy
hub / github.com/layabox/LayaAir-v1 / AnimationPlayer

Class AnimationPlayer

bin/ts/ts/LayaAir.d.ts:23657–23805  ·  view source on GitHub ↗

* AnimationPlayer 类用于动画播放器。

Source from the content-addressed store, hash-verified

23655 * <code>AnimationPlayer</code> 类用于动画播放器。
23656 */
23657 class AnimationPlayer extends EventDispatcher implements IDestroy {
23658 /** 已播放时间,包括重播时间*/
23659 _elapsedPlaybackTime: number;
23660 /**是否缓存*/
23661 isCache: boolean;
23662 /** 播放速率*/
23663 playbackRate: number;
23664 /** 停止时是否归零*/
23665 returnToZeroStopped: boolean;
23666 /**
23667 * 获取动画数据模板
23668 * @param value 动画数据模板
23669 */
23670 /**
23671 * 设置动画数据模板,注意:修改此值会有计算开销。
23672 * @param value 动画数据模板
23673 */
23674 templet: AnimationTemplet;
23675 /**
23676 * 动画播放的起始时间位置。
23677 * @return 起始时间位置。
23678 */
23679 readonly playStart: number;
23680 /**
23681 * 动画播放的结束时间位置。
23682 * @return 结束时间位置。
23683 */
23684 readonly playEnd: number;
23685 /**
23686 * 获取动画播放一次的总时间
23687 * @return 动画播放一次的总时间
23688 */
23689 readonly playDuration: number;
23690 /**
23691 * 获取动画播放的总总时间
23692 * @return 动画播放的总时间
23693 */
23694 readonly overallDuration: number;
23695 /**
23696 * 获取当前动画索引
23697 * @return value 当前动画索引
23698 */
23699 readonly currentAnimationClipIndex: number;
23700 /**
23701 * 获取当前帧数
23702 * @return 当前帧数
23703 */
23704 readonly currentKeyframeIndex: number;
23705 /**
23706 * 获取当前精确时间,不包括重播时间
23707 * @return value 当前时间
23708 */
23709 readonly currentPlayTime: number;
23710 /**
23711 * 获取当前帧时间,不包括重播时间
23712 * @return value 当前时间
23713 */
23714 readonly currentFrameTime: number;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected