TextManager
Introduction
The TextManager is a static class which handles Text object addition, removal, and common behavior. The TextManager has many of the same methods (in concept) as the SpriteManager. The TextManager is automatically instantiated by FlatRedBall so you do not need to create an instance yourself.
Text Object
The TextManager provides numerous methods for for working with the Text object. The following sections provide code samples for working with Text-related methods.
Text Addition
Most AddText methods both instantiate a new Text object as well as add it to TextManager for management. The following methods instantiate and add a Text object to the SpriteManager:
Custom BitmapFonts can be used when creating Text objects as well.
For information see the BitmapFont wiki entry.
Adding Text and Layers
Text objects can also be added to Layers.
For more information, see the Layer wiki entry and the AddToLayer method.
Text Removal
The RemoveText methods remove Text objects from the engine as well as any two-way AttachableLists (such as PositionedObjectList) that the Text object belong to. For more information, see the RemoveText page.
TextManager Members
[subpages depth="1"]
Last updated