| Package | laya.d3.component.animation |
| Class | public class KeyframeAnimations |
| Inheritance | KeyframeAnimations Component3D EventDispatcher Object |
| Subclasses | RigidAnimations, SkinAnimations |
KeyframeAnimation 类用于帧动画组件的父类。
| Property | Defined By | ||
|---|---|---|---|
| currentAnimationClipIndex : int [read-only]
获取播放器的动画索引。
| KeyframeAnimations | ||
| currentFrameIndex : int [read-only]
获取播放器帧数。
| KeyframeAnimations | ||
![]() | destroyed : Boolean [read-only]
获取是否已销毁。
| Component3D | |
![]() | enable : Boolean
获取是否启用。
| Component3D | |
![]() | id : int [read-only]
获取唯一标识ID。
| Component3D | |
![]() | isSingleton : Boolean [read-only]
获取是否为单实例组件。
| Component3D | |
| nodeCount : int [read-only]
获取播放器当前动画的节点数量。
| KeyframeAnimations | ||
![]() | owner : ComponentNode [read-only]
获取所属Sprite3D节点。
| Component3D | |
| player : AnimationPlayer [read-only]
获取动画播放器。
| KeyframeAnimations | ||
![]() | started : Boolean 是否已执行start函数。 | Component3D | |
| templet : AnimationTemplet
获取动画模板。
| KeyframeAnimations | ||
| url : String [write-only]
设置url地址。
| KeyframeAnimations | ||
| Property | Defined By | ||
|---|---|---|---|
| _player : AnimationPlayer 动画播放器。 | KeyframeAnimations | ||
| Method | Defined By | ||
|---|---|---|---|
创建一个新的 KeyframeAnimation 实例。
| KeyframeAnimations | ||
![]() | event(type:String, data:* = null):Boolean
派发事件。
| EventDispatcher | |
![]() | hasListener(type:String):Boolean
检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。
| EventDispatcher | |
![]() | isMouseEvent(type:String):Boolean
检测指定事件类型是否是鼠标事件。
| EventDispatcher | |
![]() | off(type:String, caller:*, listener:Function, onceOnly:Boolean = false):EventDispatcher
从 EventDispatcher 对象中删除侦听器。
| EventDispatcher | |
![]() | offAll(type:String = null):EventDispatcher
从 EventDispatcher 对象中删除指定事件类型的所有侦听器。
| EventDispatcher | |
![]() | on(type:String, caller:*, listener:Function, args:Array = null):EventDispatcher
使用 EventDispatcher 对象注册指定类型的事件侦听器对象,以使侦听器能够接收事件通知。
| EventDispatcher | |
![]() | once(type:String, caller:*, listener:Function, args:Array = null):EventDispatcher
使用 EventDispatcher 对象注册指定类型的事件侦听器对象,以使侦听器能够接收事件通知,此侦听事件响应一次后自动移除。
| EventDispatcher | |
| Event | Summary | Defined By | ||
|---|---|---|---|---|
| 在动画切换时调度调度。 | KeyframeAnimations | |||
![]() | 在enable属性发生变化后调度。 | Component3D | ||
| _player | property |
protected var _player:AnimationPlayer动画播放器。
| currentAnimationClipIndex | property |
currentAnimationClipIndex:int [read-only] 获取播放器的动画索引。
public function get currentAnimationClipIndex():int| currentFrameIndex | property |
currentFrameIndex:int [read-only] 获取播放器帧数。
public function get currentFrameIndex():int| nodeCount | property |
nodeCount:int [read-only] 获取播放器当前动画的节点数量。
public function get nodeCount():int| player | property |
player:AnimationPlayer [read-only] 获取动画播放器。
public function get player():AnimationPlayer| templet | property |
templet:AnimationTemplet获取动画模板。
public function get templet():AnimationTemplet public function set templet(value:AnimationTemplet):void| url | property |
url:String [write-only] 设置url地址。
public function set url(value:String):void| KeyframeAnimations | () | Constructor |
public function KeyframeAnimations()
创建一个新的 KeyframeAnimation 实例。
| animationchanged | Event |