Class: SkeletonXFadeNode

SkeletonXFadeNode


new SkeletonXFadeNode()

SkeletonXFadeNode is a SkeletonBlendNode for simple cross-fading between child animation clips.

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

Extends

Members


name

The name of the node, by which it can be retrieved from SkeletonBlendTree and SkeletonAnimation

Inherited From:

Methods


addClip()

This adds a clip that can be triggered by name in fadeTo.


fadeTo(node, time [, sync])

Parameters:
Name Type Argument Description
node

A SkeletonBlendTreeNode, an AnimationClip, or a string with the name of a clip. If using a string, the clip has to be added using addClip.

time

The time the fade takes in milliseconds.

sync <optional>

An optional flag to make clips sync to eachother. All clips with sync = true will be synced, others will run independently. This only works if node is a (name of a) clip.