In the Docs for Debug.DrawLine() it says
I would like to draw lines in the Game view but I can’t find anything about how to turn gizmo drawing in game view. Also if can do this will the lines still be drawn in deployed game with deugging symbols stripped?
I want to use this on my instruction scenes since it is a very easy way to draw a simple line from a GUI.Label to an object being described. I tried using a LineRenderer before but it was a lot more work to setup and difficult to control pixel width since it is a 3d object.
Use the gizmos button above the game view window.
Gizmos aren’t drawn in deployed games. Debug symbols is about whether symbols are left in the code, so you can do profiling in Shark if they’re not stripped, nothing to do with gizmos or anything else.
If you have Pro you can use GL.Lines, but other than that there isn’t really a way to do simple line rendering outside the editor unfortunately.
–Eric
2 Likes
I also wanted to draw lines in the Game View, in my case between moving game objects. I ended up using GL.LINES, but what bothers me is that unity doesn’t seem to support all GL primitives? Like GL.POINTS doesn’t seem to be supported.
1 Like