gui 2d flowchart lines between components

Hi all,

I am fairly new to Unity and find it quite enjoyable.
Although I have spent a lot of time trying to learn the Unity gui system I am still a noob so forgive me if this is a silly question! :slight_smile:

I am in the middle of trying to make an editor that allows me to visually drag and drop flowchart elements onto the gui canvas and connect them to each other.

What I need to do is draw a 2d connecting line between any connected flowchart components of the screen. These lines must remain connected and adjust themselves whenever I move around the flowchart element.

This is about as far as I have got. I am able to connect one flowchart component to another by dragging and dropping, which gives me a starting position and ending position for the line…But I cannot seem to visualise the 2d line between the connected items.

I really don’t know where to begin.

Any assistance would be greatly appreciated…

I’m not sure there is any way to draw 2D lines on the GUI plane, but you might be able to use LineRenderers in the scene to draw the connecting lines. You’ll probably find it easier to use an orthographic camera for the flowchart if possible.

Thanks for the info. I will give that a try and see how I go. :slight_smile: