Class: SkeletonClipNode

SkeletonClipNode

A node in a SkeletonBlendTree to contain a single animation clip. An AnimationClip on its own is simply a resource and does not contain playback state so it can be used across different animation instances. That relevant state is kept here.


new SkeletonClipNode(clip)

Parameters:
Name Type Description
clip AnimationClip

The animation clip to be played.

Properties:
Name Type Description
looping bool

Determines whether the animation should loop or not. By default, it uses the value determined by the AnimationClip, but can be overridden.

duration number

The duration of the clip.

playbackRate number

A value to control the playback speed.

time number

The current time in milliseconds of the play head.

Author:
  • derschmale <http://www.derschmale.com>
See:

Extends

Methods


play()

Starts playback.


stop()

Pauses playback.