Topic: Marker2D Instance

Is there anyway to get the instance of 2D Markers Like the 3D Markers?

So basically for marker3D we can call their gameObject by marker3D.instance

What about 2D Markers??

Re: Marker2D Instance

Hello.

2D markers do not have instances, and are grouped into one mesh to optimize performance.
If you need an instance just create a 3d marker that looks like a 2D marker (flat).

Kind Regards,
Infinity Code Team.

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

Re: Marker2D Instance

Is there anyway to get the Marker Texture on code tho? For Example, whenever a Marker2D is created I added another script for that Marker2D. Now because the Marker2D has the script I can call the gameObject by using the script, but what about the marker2D? I tried using OnlineMapsMarkerBillboard but it won't let me change it's Texture

Re: Marker2D Instance

OnlineMapsMarker.texture
https://infinity-code.com/doxygen/onlin … ed374eb92a

You can't add a component to a 2D marker, so add it somewhere else.
All marker events pass the marker on which the event was fired, so you don't need to have a custom component on the marker to work with them.
See the atlas of examples for details.

Kind Regards,
Infinity Code Team.

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