- Home /
What is the easiest way to draw a line?
I'm working in C#.
I have an object, a ReverbNode, which affects the AudioReverbFilter of sound producing objects, based on its relative position. I want to make the area in which such a ReverbNode affects audio visible. So, I'm looking for a function with which I can draw a line at the borders (x,z) of the area that the ReverbNode affects.
If you look at the AudioReverbZone component, there'll be lines depicting the affected area. I'm looking to do something similar.
If I've left out vital information, let me know! :]
Comment
Best Answer
Answer by Unitraxx · Apr 14, 2013 at 02:57 PM
Handles.DrawLine(
new Vector3(startPos.x, startPos.y),
new Vector3(endPos.x endPos.y));
http://docs.unity3d.com/Documentation/ScriptReference/Handles.html