skip to Main Content

Viewport Related

map.earthCloudLayer: enabled/disables the cloud layer when using viewport.

map.earthCloudLayerSpeed: cloud animation speed when cloud layer is enabled.

map.earthCloudLayerAlpha: cloud transparency when cloud layer is enabled.

map.earthCloudLayerShadowStrength: cloud shadow transparency when cloud layer is enabled.

map.fogOfWarLayer: enables/disables the fog of war layer.

map.fogOfWarColor: gets/sets the fog of war color.

map.FogOfWarClear(): resets the fog of war state and makes everything dark again.

map.FogOfWarGet(x,y): gets the transparency of the fog of war at a given map position.

map.FogOfWarSet(x,y,alpha): sets the transparency of the fog of war at a given map position.

map.FogOfWarIncrement(x,y,alphaIncrement, radius): changes (adds/substracts) by alphaIncrement the transparency of the fog of war inside a circle defined by a given map position and a radius.

map.FogOfWarSetCountry(countryIndex, alpha): sets the transparency of the fog of war over a given countr, including all of its regions.

map.FogOfWarSetCountryRegion(countryIndex, regionIndex,alpha): sets the transparency of the fog of war over a given country region.

map.FogOfWarSetProvince(provinceIndex, regionIndex,alpha): sets the transparency of the fog of war over a given province, including all of its regions.

map.FogOfWarSetProvinceRegion(provinceIndex, regionIndex,alpha): sets the transparency of the fog of war over a given province region.

map.fogOfWarTexture: gets/sets the fog of war texture. You can set a new, bigger texture to increase the resolution of the fog of war on the map.

map.sun: gets or sets the light gameobject that represents the sun for the day/night cycle.

map.timeOfDay: gets or sets the current time of day for the day/night cycle effect (0-24).

Back To Top