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

C#: SpriteFactory.SpriteUpdater spriteUpdater
JS: var spriteUpdater : SpriteFactory.SpriteUpdater

Description
The SpriteUpdater assigned to run the update cycle on this Sprite.

Sprites must be updated each frame in order for animation to take place. A Sprite can update itself in the Update cycle if Sprite.selfUpdate is set to True, but for more control over the update cycle, you can use a SpriteUpdater. A SpriteUpdater, when added to a scene, drives the update cycle on Sprites assigned to it. You must assign the SpriteUpdater to the spriteUpdater variable in the inspector for the SpriteUpdater to handle updates when gameplay begins. However, if you are assigning the sprite to a SpriteUpdater via scripting during gameplay, it is recommended you instead assign it by calling SetSpriteUpdater in the Sprite or by calling SpriteUpdater.AddSprite or SpriteUpdater.AddAllSprites in the SpriteUpdater. (The reason for this is that the SpriteUpdater assignment may take place 1 frame after assignment during gameplay by using the spriteUpdater variable, but it happens instantly when set via the aforementioned functions.)

See Also
SetSpriteUpdater