Way to graphically visualize a Vector2 or Vector3 in inspector?

I’m making a 2.5d platformer with custom physics for a variety of things. As such, I frequently need to debug vectors. Debug.DrawRay() helps immensely, but the scene can get too busy if I’ve got a lot of forces in play.

I think I could debug more conveniently if I also had a way to visualize these in the editor’s inspector pane. Ideally, I’d have a compass needle for each vector in the inspector in addition to x, y, and z values.

Does anyone have a recommendation on how best to approach this?


You can use this to draw lines in the GUI (it does work in EditorGUI-land as well)

Here’s a shameless plug:

I’ve created a tool that does exactly that