Stratkit Army Label Entity¶
Draws the army labels as instanced quads through com.stratkit.ui-entities, from the label model of
com.stratkit.army-label (ArmyLabelModelTypes). It replaces the UGUI label views: a change of the model only
rewrites the per-instance data of the label's quads, and the camera zoom only moves the label's transform.
Setup¶
- Bake the label prefabs into an
ArmyLabelEntityConfig(the game's editor tool does this; the config holds the templates per label type and zoom level and the settings of the UGUI label behaviours). - Add
ArmyLabelEntityModulewith that config to the map modules, and turn onArmyLabelModule.UseEntityRenderer: the UGUI views are then not created and this module's systems run.
Extending¶
A game adds its own label parts by implementing IArmyLabelEntityViewExtension and registering it in
ArmyLabelEntityViewExtensions; it runs after the built-in views whenever a label is applied.