Table of Contents

Class BillboardAtlasGenerator

Namespace
Map.Rendering
Assembly
MapAssembly.dll

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
object
BillboardAtlasGenerator

Properties

AtlasTexture

Get the generated atlas texture. Generates on first access.

public Texture2D AtlasTexture { get; }

Property Value

Texture2D

Methods

GetOrGenerateAtlas(bool)

Get atlas texture with explicit generation. Useful for forcing regeneration with new settings.

public Texture2D GetOrGenerateAtlas(bool forceRegenerate = false)

Parameters

forceRegenerate bool

Returns

Texture2D