Topic: uGUI tooltips not working on example
Hi,
I've been studying Online Maps and found out that both uGUITooltip examples doesn't seem to work. At least not out of the box (as I assumed they would).
Basically
OnlineMapsMarker tooltipMarker = OnlineMaps.instance.tooltipMarker as OnlineMapsMarker;is always null, so nothing is ever drawn.
I did, however, manage to get it working by putting most of the code found in the LateUpdate() method inside the delegate assigned to OnlineMapsMarkerBase.OnMarkerDrawTooltip.
But I am not quite sure this is the correct approach, even more so seeing how the marker is never deleted even when outside the view (it just gets stuck in a corner until I go back to it, then it works just fine).
What would be the correct way to implement custom uGUI tooltips, then? Should I just cache the tooltips and check every frame if they are out of the view?