SpriteFactory.Sprite.defaultAnimationIndex
Property: Read/Write
C#: int defaultAnimationIndex
JS: defaultAnimationIndex : int
Description
The index of the default animation. Returns -1 if no default animation.
You can change the default animation by index by setting this property. If the old default animation in currently playing when this property is changed, you will need to call PlayDefaultAnimation in order to begin playing the new default animation.
See Also
defaultAnimation