Skip to content

Debugging ‐ Draw Arrow

Wagner GFX edited this page Dec 4, 2024 · 2 revisions

Draws an arrow made of lines using either Gizmos or Debug.Draw.

Arrows can be drawn based on origin/destination or origin/direction. When using direction, the magnitude will be used as the arrow's length.

It's possible to customize the arrow color (Debug.Draw only), arrowhead size, arrowhead angle and arrowhead position in the body.

The arrowhead position is a normalized value between 0 (origin) and 1 (destination). In case of a fixed distance, there is a helper function that can calculate that.

Clone this wiki locally