AutomaticallyUpdatedSprites
Last updated
Last updated
The AutomaticallyUpdatedSprites property in the SpriteManager is a list of all Sprites which the SpriteManager will apply standard behavior to. This includes velocity, rotational velocity, attachment, color rate changes, scale velocity, and animation. This list is made available for debugging and testing. It can be added to a watch window when Visual Studio has hit a breakpoint:
AutomaticallyUpdatedSprites is a SpriteList which is exposed for debugging, tools development, and advanced FlatRedBall programming. Most games do not need to add or remove Sprites directly from this list. This list is added to and removed from using more common FlatRedBall methods.
AutomaticallyUpdatedSprites gets populated whenever a Sprite is added through the SpriteManager. For example:
Adding existing instances also adds the Sprite to AutomaticallyUpdatedSprites:
Also adding a Sprite to a Layer will add it to AutomaticallyUpdatedSprites:
AutomaticallyUpdatedSprites is a SpriteList which means it inherits from PositionedObjectList so it shares a two-way relationship with any Sprite that is added to it. Calling SpriteManager.RemoveSprite is the recommended way of removing a Sprite from this List.