Class BillboardAtlasGenerator
Optional utility for generating texture atlases at runtime. Can generate numeric atlases (0-99) or custom character sets.
Use Cases:
- Unit count badges (grand strategy games)
- Score displays
- Numeric indicators on map
- Any instanced text rendering
Architecture:
- Generates texture at runtime (no asset files needed)
- Procedural bitmap font for digits
- Point filtering for crisp text at any distance
- Configurable colors and resolution
NOTE: This is an optional feature. Games don't need to use this if they don't need numeric badges or have their own text rendering.
public class BillboardAtlasGenerator : MonoBehaviour
- Inheritance
-
objectBillboardAtlasGenerator
Properties
AtlasTexture
Get the generated atlas texture. Generates on first access.
public Texture2D AtlasTexture { get; }
Property Value
Methods
GetOrGenerateAtlas(bool)
Get atlas texture with explicit generation. Useful for forcing regeneration with new settings.
public Texture2D GetOrGenerateAtlas(bool forceRegenerate = false)
Parameters
forceRegeneratebool