I found DrawLine class in Unity Wiki.
But I’m having error whenever I call the function.
Basically I pass in Start Point and an End Point then I got this error:
“NullReferenceException” on this line of code
GUIUtility.ScaleAroundPivot(new Vector2((pointB - pointA).magnitude, width),
new Vector2(pointA.x, pointA.y + 0.5f));
More specifically the error should like this:
“NullReferenceException: Object reference not set to an instance of an object
UnityEngine.GUI.set_matrix (Matrix4x4 value)”
Anyone know how to solve this?