Click or drag to resize
SpriteBase.Deactivate Method
Deactivate this sprite.

Namespace: (Default Namespace)
Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntax
C#
public virtual void Deactivate()
Remarks
Deactivated sprites are no longer be drawn and their rules are not processed. In debug mode, attempting to refer to inactive sprites from active rules (or otherwise attempting to execute functions on inactive sprites) will display errors. If the sprite was added as a dynamic sprite by TileAddSprite(Int32, Type), deactivating it will cause ProcessSprites() to remove the sprite from all categories so it cannot even be considered for re-activation.
See Also