Inspector Reference

beginner concepts

World Map 2D Edition · Core Concepts

Inspector Reference

When you select the WorldMap2D GameObject, the Inspector shows the following properties. Use the Reset option from the gear icon to revert all values to factory defaults.

WorldMap2D Inspector

Map Layout

PropertyDescription
Fit Width / Height / Center MapControls how the map can be moved and centered on screen.
Render ViewportWhen assigned a Viewport GameObject, the map renders inside that viewport instead of its normal transform. See Viewport Feature.

Earth

PropertyDescription
Show EarthShows or hides the Earth texture. Hiding it shows only frontiers for a futuristic UI look.
Earth StyleChanges the texture applied to the map (Natural, Alternate 1–3, Solid Color, Natural High-Res, Scenic, 16K variants).

Grid Lines

PropertyDescription
Show Latitude / Longitude LinesActivates or deactivates the grid overlay. Stepping options control the separation in degrees between lines.
Grid ColorColor of the latitude/longitude lines.

Cities

PropertyDescription
Show CitiesShow or hide city markers on the map.
Min Population (K)Filters cities by population (in thousands). Set to 0 to show all cities in the catalog.

Frontiers

PropertyDescription
Show FrontiersShow or hide all country borders. Individual countries can be styled via the API.
Frontiers DetailLow (110M:1 scale, default) or High (50M:1 scale). High detail recommended only when zooming into small regions; may impact performance on low-end devices.
Frontiers ColorColor used for all frontier lines.
Thin LinesWhen enabled, frontier lines do not get thicker when zooming in. Useful for VR and mobile.

Country Highlight

PropertyDescription
Country Highlight EnabledEnables highlighting countries on mouse hover. The current country is available via countryHighlighted.
Country Highlight ColorFill color for the highlighted country.
Draw Outline / Outline ColorDraws a colored border around the highlighted or colorized country.
Include All RegionsWhen enabled, all regions of the highlighted country light up (e.g., Alaska highlights when hovering USA).

Country Labels

PropertyDescription
Show Country NamesDraws country labels blended with the Earth map using a RenderTexture.
Relative SizeControls how much labels fill the country area. Higher values make labels larger.
Minimum SizeMinimum label size. Keep low to prevent overlap in dense areas.
FontDefault label font (factory default: Lato). Use the Decorator component to assign per-country fonts.
Labels / Shadow ColorColor and alpha for labels and their shadows. Per-label customization is available via Country.labelGameObject.

Provinces

PropertyDescription
Show ProvincesWhen enabled, individual provinces/states highlight on hover. Access via provinceHighlighted.

Cursor & Navigation

PropertyDescription
Show CursorDisplays a crosshair at the mouse position. Read the position with cursorLocation when mouseIsOver is true.
Navigation TimeDuration (seconds) for fly-to animations. Set to 0 for instant movement.
Autorotation SpeedContinuous rotation speed. Set to 0 to disable.

User Interaction

PropertyDescription
Allow User RotationWhether the user can drag to pan the map. Set to false to implement custom interactions.
Allow User ZoomWhether the user can zoom with the mouse wheel.
Zoom SpeedMultiplier for mouse wheel zoom speed.
Screen Edge ScrollAuto-pans the map when the mouse reaches the screen edges.
Static CameraWhen enabled, the map moves instead of the camera during drag and zoom.
Was this page helpful?