My goal is to to draw some debug lines (using Debug.DrawLine(…) )in the scene view by clicking a button in the game view without having to run the game. The button has assigned on the OnClick event Action the scene object with the method running the script as well as the Editor And Runtime option.
This doesn’t seem to trigger anything even though all the connected scripts have been tagged with [ExecuteInEditMode].
Has anyone ever managed to do something like this or am I trying that is not supposed to happen by design?
Other posts I found: