Debug.DrawLine not showing in the GameView
问题 I'm working on a 2D Unity app and I'm encountering some weird behavior. This code works just fine. Debug.DrawLine(button1.transform.position, button2.transform.position, Color.green); When I run the app, I see a green line in the Scene view. But nothing appears in the Game view when I have the following line. Physics2D.Linecast(button1.transform.position, button2.transform.position); I'm confused as to how Unity is able to draw a line between these two buttons, but for some reason, it's just