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

C#: void SetAnimationEndedCallback (string animationName, System.Action callback)
JS: function SetAnimationEndedCallback (animationName : String, callback : System.Action) : void

Description
Assign a callback to run when an animation ends playing even if it has not finished. Use this to take some action after an animation ends playing. This will be called every time an animation finishes, is stopped, or is interrupted by playing another animation..


C#: void SetAnimationEndedCallback (int animationIndex, System.Action callback)
JS: function SetAnimationEndedCallback (animationIndex : int, callback : System.Action) : void

Description
Assign a callback to run when an animation ends playing even if it has not finished. Use this to take some action after an animation ends playing. This will be called every time an animation finishes, is stopped, or is interrupted by playing another animation.

See Also
SetAnimationStartedCallback
SetAnimationFinishedCallback