Topic: 3D marker OnClick event is not fire

hi, Alex,

I add some marker using following code

OnlineMapsMarker3D marker = OnlineMapsControlBase3D.instance.AddMarker3D(positions, marker3DPrefab);

  enemys.Add(marker);

int j = Random.Range(0, 12);

marker.instance.transform.RotateAround(Vector3.zero, transform.up, 30 * j);
  marker.label = "Ghost";
marker.instance.gameObject.GetComponent<BoxCollider>().center = new Vector3(0f,1f,0f);
  marker.OnClick += OnClickGhost;
       
not sure why OnClickGhost function is never been calld.

I check OnMapBaseRelease function of OnlineMapsControlBase. api.GetMarkerFromScreen(Input.mousePosition) returns null. Does that mean it does not find any marker right?

and in OnlineMapsTileSetControl.instance.GetMarkerFromScreen, I found out that usedMarkers count as 0 and it only return a TilesetFlatMarker marker.

Does that mean I cannot click 3D Marker on screen?

But tooltips works fine and in example MarkerClickCountExample, it does say you can Subscribe to click event with a 3Dmarker.
Please let me know how can I click a 3D marker on screen thanks.

Thanks

Re: 3D marker OnClick event is not fire

Hello.

Set «Online Maps Tiles Control Inspector / 3D Markers / Allow Default Marker Events - ON», is disabled by default.

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

Re: 3D marker OnClick event is not fire

Thanks Alex