Author Topic: Show country names error  (Read 44 times)


  • Newbie
  • *
  • Posts: 18
    • View Profile
Show country names error
« on: January 13, 2021, 06:06:19 PM »

My game throws an error when I turn on country names in Editor (it basically shows all labels). If I do it before game is on - no labels are drawn. Do you know why I got the error?

NullReferenceException: Object reference not set to an instance of an object
WPM.WorldMapGlobe.set_showCountryNames (System.Boolean value) (at Assets/WorldPoliticalMapGlobeEdition/Scripts/WorldMapGlobeCountries.cs:414)
WPM.WorldMapGlobeInspector.OnInspectorGUI () (at Assets/WorldPoliticalMapGlobeEdition/Editor/WorldMapGlobeInspector.cs:539)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass58_0.<CreateIMGUIInspectorFromEditor>b__0 () (at <8f44d91b549e47c9883e180579f26ef6>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

PS. I have develop my game for few months, but I did not change code inside World Map catalogs. I also tried to update WMP scripts and editor & fonts, but nothing happened.


  • Administrator
  • Hero Member
  • *****
  • Posts: 6521
    • View Profile
Re: Show country names error
« Reply #1 on: January 16, 2021, 09:50:07 AM »
Fixed in both latest public version and beta. Thanks for the heads up!