World Map Strategy Kit · Tools & Editors
This component is used to decorate parts of the map. Current decorator version supports:
Customizing the label of a country
Colorize a country with a custom color
Assign a texture to a country, with scale, offset and rotation options.
You may use this component in two ways:
From the Editor, clicking on the “Open Decorator” button at the bottom of the World Map inspector.
From code, using any of its API through map.decorator accessor. The first time you use its API, it will automatically add the component to the map gameObject.
The API of this component has several methods but the most important are:
map.decorator.SetCountryDecorator(int groupIndex, string countryName, CountryDecorator decorator)
This will assign a decorator to specified country. Decorators are objects that contains customization options and belong to one of the existing groups. This way you can enable/disable a group and all decorators of that group will be enabled/disabled at once (for instance, you may group several countries in the same group).
map.decorator.RemoveCountryDecorator(int groupIndex, string countryName
This method will remove a decorator from the group and its effects will be removed.
A decorator object has the following fields:
Help us improve this documentation page.