- Home /
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
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
Answer by Unitraxx · Mar 31, 2013 at 03:28 PM
Handles.BeginGUI( );
Handles.DrawLine(
new Vector3(startPos.x, startPos.y),
new Vector3(endPos.x endPos.y));
Handles.EndGUI();
http://docs.unity3d.com/Documentation/ScriptReference/Handles.html
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 ins$$anonymous$$d of drawLine. (You can find it in the provided scriptreference link.)
Your answer
Follow this Question
Related Questions
Does Unity IMGUI for Editor use DirectX on Windows? 0 Answers
How do I draw curves in a custom editor window? 1 Answer
EditorWindow - is it possible to create a list like the Hierarchy pane? 1 Answer
Using GL to display HUD on screen 0 Answers
Use of the inspector along with a custom editorwindow 1 Answer