Yes, of course.
My App and the marker components has this look:
My code to bind event to marker is this:
public OnlineMapsMarker3D AddNewEgg(Egg egg,bool storage=true){
GameObject prefabEgg =new GameObject();
prefabEgg= GetEggPrefab(egg);
OnlineMapsMarker3D marker = new OnlineMapsMarker3D();
marker = onlineMapsTileComponent.AddMarker3D(egg.longitude, egg.latitude, prefabEgg);
marker.scale = prefabEgg.transform.localScale.x;
marker.transform.gameObject.GetComponent<EggComponent>().SetEgg(egg);
if(storage==true){
if(egg.typeEgg== Egg.TYPE_MANUAL_HW)
GameSessionController.control.session.mapEggsManualList.Add(egg,marker);
else
GameSessionController.control.session.mapEggsRandomList.Add(egg,marker);
}
if(egg.opened==0)
marker.OnClick += eggC;
return marker;
}
And my situation is:
The click event runs very well with the all eggs on the Unity Editor.
But on Android build, only can click on the single eggs. The eggs that are very close to other can not execute the click event, for example the 3 eggs near to the character.
Can you give me some tips?
Thanks!!
Post's attachments Capture1.PNG 208.24 kb, 130 downloads since 2018-10-23