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??
You are not logged in. Please login or register.
Infinity Code Forum → Online Maps Help → 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??
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).
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
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.
Infinity Code Forum → Online Maps Help → Marker2D Instance
Powered by PunBB, supported by Informer Technologies, Inc.