Sprite Factory

ReadMe
Release Notes
Overview
Using the Editor
Upgrading

Concepts
Sprites
Master Sprites
Sprite Groups
Colliders
Locators
Material Sets
SpriteUpdater
SpriteCamera

Advanced
Working in Multiple Projects

Classes
Runtime Classes

Videos
Overview
Creating Sprites
Sprite Inspector
Frame Events
Collision System
Locator System
Material Sets

Links
Sprite Factory Site
Web Documentation
Support
Contact

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