unity draw gizmos in 4 direcions code example
Example: draw ray gizmos
void OnDrawGizmosSelected()
{
Gizmos.color = Color.red;
Vector3 direction = transform.TransformDirection(Vector3.forward) * 5;
Gizmos.DrawRay(transform.position, direction);
}