Package | laya.d3.component.animation |
Class | public class CameraAnimations |
Inheritance | CameraAnimations ![]() ![]() ![]() ![]() |
CameraAnimations
类用于创建摄像机动画组件。
Property | Defined By | ||
---|---|---|---|
addMode : Boolean = true 叠加模式。 | CameraAnimations | ||
![]() | 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 | |
localMode : Boolean = true 变换模式。 | CameraAnimations | ||
![]() | nodeCount : int [read-only]
获取播放器当前动画的节点数量。
| KeyframeAnimations | |
![]() | owner : Sprite3D [read-only]
获取所属Sprite3D节点。
| Component3D | |
![]() | player : AnimationPlayer [read-only]
获取动画播放器。
| KeyframeAnimations | |
![]() | started : Boolean 是否已执行start函数。 | Component3D | |
![]() | templet : AnimationTemplet
获取动画模板。
| KeyframeAnimations | |
![]() | url : String [write-only]
设置url地址。
| KeyframeAnimations |
Method | Defined By | ||
---|---|---|---|
创建一个新的 CameraAnimations 实例。
| CameraAnimations | ||
![]() | 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 |