Topic: Getting the GameObject of Markers

Hello Alex,

I need to access the gameObject created for Marker when we add a marker to a tileset map. Can you point towards the code where markers are being created?
Or if there is a way to access the gameObject then please tell.

Also I have sent you a PM. Please have a look at that as well.

Regards,

Ali

Re: Getting the GameObject of Markers

Hello.

If you ask about the 3D markers, then OnlineMapsMarker3D.instance.
http://infinity-code.com/doxygen/online … 293778120b

If you ask about 2D markers, then it «Map GameObject / Markers».

Kind Regards,
Infinity Code Team.

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

Re: Getting the GameObject of Markers

I am talking about 2D markers. Yes I am aware that gameObjects are a child of Map gameObject. I need a way access a specific one. Have a look below

 
OnlineMaps.instance.position = OnlineMapsFindLocation.GetCoordinatesFromResult(s);
OnlineMapsMarker m = new OnlineMapsMarker
{
    position = OnlineMaps.instance.position,
    texture = api.defaultMarkerTexture
};
m.Init();
OnlineMaps.instance.AddMarker(m);
//Some way to access the gameObject for m specifically like
//m.gameObject

Or maybe you can tell where these gameObjects are being created and I can go from there. You must be instantiating the gameObject for marker somewhere. Can you point me towards that?

Re: Getting the GameObject of Markers

All 2D markers baked in single mesh, so you can not get gameobject instance.

Please specify what you want to do with this gameobject.
Perhaps we'll give you the best way to do it.

Or you can create a 3D marker that looks like a 2D marker and be able to control it gameobject.

Kind Regards,
Infinity Code Team.

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

5 (edited by ali.arslan 2015-07-24 10:31:38)

Re: Getting the GameObject of Markers

Lets suppose I want to make a single marker fade in and out.

Edit: Or scale up and down to draw the attention of the user.

Re: Getting the GameObject of Markers

I think you better use for this purpose 3D markers.

Kind Regards,
Infinity Code Team.

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