Draws a line from start to start + dir with color.
JavaScripts
JavaScript
C#
Boo
// Draws a 10 meter long green line from the position // forward along the transform's z-axis. functionUpdate () { var forward : Vector3 = transform.TransformDirection(Vector3.forward) * 10; Debug.DrawRay (transform.position, Vector3.forward * 10, Color.green); }