Topic: Draw lines in the editor but not on the ios device

First of all thanks for the great asset! I'm just getting started, but I'm already excited about the wealth of functions.

My Problem is.

I draw a route that can be seen in the editor, but unfortunately not on iOS.

my code based on drawing in your example navigation class.

OnlineMapsDrawingLine route = new OnlineMapsDrawingLine(points, lineColor, lineThickness);
route.texture = lineTexture;
control.drawingElementManager.Add(route);
map.Redraw();

Can it be a shader problem, or do I have to wait for a special Complete Event before I can draw routes on the device.

Greetings from Hamburg, Germany

Re: Draw lines in the editor but not on the ios device

Hello.

There could be two problems here:
1. You do not have the points. For example, there was some error, the server did not return your answer (or returned an error) and you do not have the points.
2. The problem is in the shader.

How to check this:
Add some other script that uses Drawing API and check if you see lines on the device.
For example this one:
https://infinity-code.com/atlas/online- … ample.html
If you see these lines, then the problem is in the points.
If you don't see the lines, then the problem is in the shader.
Choose some other shader in Tileset / Materials & Shaders / Drawing Shader.

Kind Regards,
Infinity Code Team.

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

Re: Draw lines in the editor but not on the ios device

Thank you for the quick reply!
With this help I was able to find my mistake.
It was ultimately due to a parsing error of the coordinates due to missing information on a string for float parsing.

NumberFormatInfo myNumberFormatInfo = new CultureInfo("en-US", false).NumberFormat;

My German device shot the floats.