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

C#: void Play ()
JS: function Play () : void

Description
Play the current animation or the the default animation if no current animation.


C#: void Play (bool replayFromStart)
JS: function Play (replayFromStart : boolean) : void

Description
Play the current animation or the the default animation if no current animation.

If replayFromStart = true, the current animation will restart from the beginning.


C#: void Play (string animationName, [bool replayFromStart = false])
JS: function Play (string animationName, [replayFromStart : boolean = false]) : void

Description
Play animation by name.

If replayFromStart = true and the incoming animation is already playing, the animation will restart from the beginning.


C#: void Play (string animationName, bool replayFromStart, bool playBackwards)
JS: function Play (string animationName, replayFromStart : boolean, playBackwards : boolean) : void

Description
Play animation by name.

If replayFromStart = true and the incoming animation is already playing, the animation will restart from the beginning.
If playBackwards = true, animation frames will be played in reverse order.


C#: void Play (int animationIndex, [bool replayFromStart = false])
JS: function Play (animationIndex : int, [replayFromStart : boolean = false]) : void

Description
Play animation by index.

If replayFromStart = true and the incoming animation is already playing, the animation will restart from the beginning.


C#: void Play (int animationIndex, bool replayFromStart, bool playBackwards)
JS: function Play (animationIndex : int, replayFromStart : boolean, playBackwards : boolean) : void

Description
Play animation by index.

If replayFromStart = true and the incoming animation is already playing, the animation will restart from the beginning.
If playBackwards = true, animation frames will be played in reverse order.