There is an array of points (declared in the script settings), along which the object is moving (3d)

Question: how can you draw a line between these points, so that it would be visible at the start of the game (it’s not the algorithm that interests you, but rather what to use as a line: game objects, some graphic elements)

    1 answer 1

    It all depends on the shape of the curve. The easiest way to use ready-made objects in Unity is like LineRenderer ( http://docs.unity3d.com/ru/current/Manual/class-LineRenderer.html_ ), only if the points are not in the plane, the line thickness can be distorted, therefore in In my projects, I generated lines using a script. Saw in other projects as did lines from cylinders from a point to a point and at the points themselves inserted spheres to smooth the transition. It all depends on the nature of the curve, and which line you want to draw. With GL you can draw lines in one pixel, and if you need more, it is better to do it already through Mesh.