debug.drawline

Just trying the drawline. Want to use a Transform data type. I see it use Transform in a movie(raycast). Using 4.3.1. Debug.drawline says Vector3 variable. Thus it does not like a Transform variable. Did it change from 4.2 to 4.3.1?

It works exactly the same as always. You can’t ever use a Transform to make a line, it needs points in space, like transform.position.

–Eric

Here is part of a script

public class GuardLogic : MonoBehaviour {
public Transform sightStart, sightEnd;

void Raycasting()
{
Debug.DrawLine(sightStart.position, sightEnd,

}

Take a look at this movie – http://www.youtube.com/watch?v=cJj7-Sy03HQ

}