Stratkit Player Territory Label¶
Package that tracks changes in province ownership, groups provinces into zones, calculates Oriented Bounding Box data and creates and destroys country labels depending on whether the provinces they represent are currently in view or not.
How to setup¶
- Create
PlayerTerritoryLabelModule
. - Create PlayerTerritoryLabelPrefab, that consists of Rect Transform and Text Mesh Pro components, that lives in Shared Assets in the project.
- Create the
Material
that the provinceMeshRenderer
will use. - Set PlayerTerritoryLabelPrefab in
PlayerTerritoryLabelModule
config.
How to use¶
- Add a module and config to BootstrapManager MapModules and MapConfigs.
- Run the game