Topic: OnlineMapsMarkerBase.SetPosition only updates when dragging map
Hi,
I am not completely sure if this is a bug but I almost assume. I want to position a 2D marker below cursor position:
void TestSelector()
{
OnlineMapsMarker newMarker = UIMarkerController.Create(new Vector2(0f, 0f), MarkerTexture);
Selector = newMarker;
}
void Update()
{
if (Map.control.GetCoords() != null && Selector != null)
{
Selector.SetPosition(Map.control.GetCoords().x, Map.control.GetCoords().y);
}
}
The code above does only position the marker as long as I press or hold the mouse button. If I move the cursor around without clicking, the marker doesnt change position.