This package is available as a separate purchase and includes +270 vector and raster images of country flags and weather symbols:
For more information, please consult the Asset Store page for World Flags and Weather Symbols
Once imported into the project, the names of the flag texture files equal to the country names used in our map assets so you can add flag icons or texture countries with their flag with minimal effort.
The code to texture the country surface with its flag would be:
// Get reference to the API
WorldMapGlobe map = WorldMapGlobe.instance;
// Choose a country
string countryName = “China”;
// Load texture for the country
Texture2D flagTexture = Resources.Load<Texture2D> ("Flags/png/" + countryName);
// Apply texture to the country main region (ignore islands)
int countryIndex = map.GetCountryIndex(countryName);
map.ToggleCountryMainRegionSurface(countryIndex, true, flagTexture);