Topic: How to get the instance of the marker from location service
Hi..
How can i get the instance of the current marker fro the location service? I added my 3D Prefab und it is shown on the map. I tried to get the current instance by "OnlineMapsLocationService.marker3DPrefab" but that seems only to be the prefab itself and not the current instance. The only way for me to get the instance until now was to use the Find method of the GameObject:
GameObject.Find ("MyMarker(Clone)");
Is there a better way to do that? And where is the best (earliest) place to get the instance (maybe "OnLocationInited")?
Besides that, if i get the instance as shown above i have a strange behavior i don't understand.
Sometimes when get the marker like above, the marker gets inactive. I tried it several times. It is only this one line of code which causes this.
Maybe you can give me a hint how to access the marker and maybe you have an idea why it becomes inactive sometimes.