#Debug.DrawRay
(and other such functions) never draw in the game view
Debug.DrawRay
(and other such functions) never draw in the game view
They're debug drawings and debug info and output should never appear in the "live" program view, which is supposed to mimic the compiled executable's behavior, which strips all references to Debug
. If you want to draw in the game window you need top use a LineRenderer
or other runtime solution (UI objects, etc).