Loving the UGUI Minimap, it's awesome.
Need some help though. I want to dynamically show and hide icons as the player reaches certain parts of the map. As the game starts I have referenced each of the items and called a script to run through the array of all the items and disable them as follows.
Code: Select all
public void HideOnRadar(bl_MiniMapItem[] in_iconItems)
{
for (int i = 0; i < in_iconItems.Length; i++) {
in_iconItems [i].HideItem ();
}
}
However, when I try to show a icon through scripting (below), the referenced icon does not seem to re-appear. I have debugged the code and stepped through it, and it successfully calls the ShowItem() method, and the cacheItem is not null, so it seems to set active as true, but on the Screen it does not reappear.
Code: Select all
public void ShowOnRadarSingle(bl_MiniMapItem in_iconItems)
{
in_iconItems.ShowItem();
}
Can you help.
Thanks,
Mark.