- Home /
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?
Thanks!
You can actually use Handles.DrawLine in an editor window too. Including an inspector.
Answer by KristianHJ · Jan 07, 2014 at 10:09 PM
Here's a shameless plug:
I've created a tool that does exactly that https://www.assetstore.unity3d.com/#/content/14017