How to make a line between object in Editor Window

If you’ve been using plugins like playmaker you know what I’m talking about

alt text

But I can’t see how it’s done because the source code of playmaker is a DLL file

can someone point me in a right direction? thanks

1 Answer

1

Handles.BeginGUI( );
Handles.DrawLine(
new Vector3(startPos.x, startPos.y),
new Vector3(endPos.x endPos.y));
Handles.EndGUI();

Thank you so much! Btw do you how how to make the line more bendy or whatever it's called like in the picture above?

Yeah, just use Handles.drawBezier instead of drawLine. (You can find it in the provided scriptreference link.)

Thanks again!

does this really work in editor window ?

Yes it does!