Search Unity

Debug.DrawLine not going away outside Play mode

Discussion in 'Editor & General Support' started by col000r, Feb 4, 2020.

  1. col000r

    col000r

    Joined:
    Mar 27, 2008
    Posts:
    699
    I have an editor window that draws into the scene view with Debug.DrawLine, but even though I don't specify a duration, the lines stay around for quite a few seconds. Not even calling Repaint() on the SceneView helps.

    Is there a way to do this or should I be using some other method to draw in the SceneView outside of play mode?