Unity has built-in Gizmo functions that get called automatically.
OnDrawGizmos()
Always visible in the Scene view.
OnDrawGizmosSelected()
Only visible when the object is selected in the Scene view.
Great for visualizing field of view, attack range, and other debug shapes.