Topic: Multiple disconnected lines

Hi
Greatly appreciate any ideas on making multiple (100's) of NOT connected lines (ie each separate, searchable & between 2 points).

if Use
map.AddDrawingElement(new OnlineMapsDrawingLine(line, Color.green, 5));
and then use same code a second time ... it removes / writes over the original line (as they both use same list of points called "line")
(and I am struggling to name unique lists programatically).

I use your addMarker perfectly in combination with tags and xml. Is there a way to use lines in similar way?

Have tried using your "dotted line" example, with multiple gameObjects, however can only get the first one to resize properly when zooming.

Background: have multiple users updating information via online database, all need to get each others updates etc
Thanks in advance
Kingsley

Re: Multiple disconnected lines

Hello.

If you want to have hundreds of lines, I do not recommend you to use the built-in drawing api or meshes (as in the example dotted lines). It is simply not designed for such use.
It is much better to use GL or LineRenderer.
https://docs.unity3d.com/ScriptReference/GL.html
https://docs.unity3d.com/ScriptReferenc … derer.html
Using GL you can have thousands of lines.

To convert coordinates to Unity World Position, use OnlineMapsTileSetControl.GetWorldPosition.
http://infinity-code.com/doxygen/online … 2992c6e097

Kind Regards,
Infinity Code Team.

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

Re: Multiple disconnected lines

Thanks for the prompt reply Alex, I will investigate that.