Drawing simple lines and curves

Hello,

I want to create a simple structural analysis-program for Android and ios. There you had to draw simple lines and curves and so on. Is it possible to create a program such this with Unity and exists there any example?

Thanks you, Berni

We have a built-in Line Renderer: Unity - Manual: Line Renderer component, which is useful for drawing straight line segments. You give it a list of points, and it draws lines between them.

There are examples of how to use the Line Renderer in our Standard Assets: Unity Asset Store - The Best Assets for Game Making

If you want something more advanced for drawing curves, you may want to look into Splines. To use these, you’ll need something from a 3rd party, eg: Curves and Splines, a Unity C# Tutorial or Unity Asset Store - The Best Assets for Game Making or Unity Asset Store - The Best Assets for Game Making

4 Likes

I’m surprised that Unity doesn’t have a built in bezier curve renderer. @richardkettlewell , do you have any idea if a built in bezier curve renderer in the works for a future version of Unity?

2 Likes