I just need to draw a line over a vector for debug purposes.
This is what I have:
var ownPos : Vector3 = transform.position;
var gravObj = GameObject.FindGameObjectsWithTag ("Gravity");
for (all in gravObj){
var allPos : Vector3 = all.transform.position;
Debug.DrawLine(ownPos, allPos, Color.red);
}
I found the issue. DrawLine isn’t active in in the scene view unless the game is running. My scene view was merged with game view so that I had more viewing space. When I click to start the game, the scene view switches to game view making DrawLine useless. When the game stops, so does DrawLine.