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.defaultAnimationOverride

C#: int defaultAnimationOverride
JS: var defaultAnimationOverride : int

Description
Overrides the MasterSprite's default animation with an animation in this Sprite at the index.

This value should be set in the inspector before gameplay begins. If you need to change this value during gameplay via scripting, it's recommended to set it via the defaultAnimation or defaultAnimationIndex properties instead. (The reason is that changes to defaultAnimationOverride may take place 1 frame after being set, whereas changes to the aforementioned properties takes place immediately.)

See Also
defaultAnimation
defaultAnimationIndex