Options
All
  • Public
  • Public/Protected
  • All
Menu

Binds an animation clip to an animated entity and holds the animation state. This component is required for the animation to take place. The animation starts immediately after this component is added to the entity.

Hierarchy

Index

Constructors

constructor

  • Parameters

    • Optional animationClip: Entity
    • Optional time: number
    • Optional speed: number
    • Optional paused: boolean
    • Optional loopMode: LoopMode

    Returns AnimationClipPlayer

Properties

animationClip

animationClip: Entity

The entity with the AnimationClip component.

loopMode

loopMode: LoopMode

The looping mode for the entire animation.

paused

paused: boolean

If true, animation playback stops, and the time value does not change.

speed

speed: number

The playback speed of the animation. 1 is normal speed. Negative values cause the animation to play backwards.

time

time: number

The current time of the animation, in seconds. This value starts from 0.0 and changes every frame based on the animation speed.

Static _isSharedComp

_isSharedComp: boolean

Static _size

_size: number

Static _view

_view: any

Static animationClip

animationClip: EntityComponentFieldDesc

Static cid

cid: number

Static paused

Static speed

Static time

Methods

Static _dtorFn

Static _fromPtr

Static _tempHeapPtr

Static _toPtr

Generated using TypeDoc