Labels API

advanced scripting

World Map Globe Edition · Scripting Support (C#)

Class: All members on this page belong to WorldMapGlobe (namespace WPM). Access via WorldMapGlobe.instance.

Country Labels

bool showCountryNames { get; set; }

Show or hide country name labels.

bool countryLabelsEnableAutomaticFade { get; set; }

Automatically fade labels based on zoom distance.

bool labelsFaceToCamera { get; set; }

Make labels always face the camera (billboard mode).

bool showLabelsShadow { get; set; }

Show drop shadow under labels.

Custom Labels per Country

Each Country object has label customization fields:

string Country.customLabel

If set, displayed instead of the country name.

bool Country.labelColorOverride

Set to true to use a custom label color.

Color Country.labelColor

The custom label color (requires labelColorOverride = true).

Font Country.labelFontOverride

Custom font for this country's label.

bool Country.labelVisible

Whether the label is visible (default true).

float Country.labelRotation

Label rotation in degrees. If 0, rotation is calculated automatically.

Overlay Layer

GameObject GetOverlayLayer(bool createIfNotExists, bool requireRenderTexture)

Returns the overlay layer for placing custom labels and UI elements on the globe surface.

int overlayLayerIndex { get; }

Layer index used by the overlay system.

Was this page helpful?