title: How to use Handles.Label to draw text in Scene view
body: <p>I can use Debug.DrawLine to draw lines between objects.
  but now i want above/on each waypoint to draw/write a number.
  So in the scene view I will see 1,2,3,4...on each waypoint.</p>
  
  <p>I tried to add DrawGizmo but not sure how to use it in the Update function and I'm getting some warnings with the gizmo:</p>
  
  <p>The first warnings is to remove each UnityEditor to make it simplify:
  So I removed all the places with UnityEditor. Then I'm get warning:</p>
  
  <blockquote>
    <p>Severity  Code    Description Project File    Line    Suppression State
    Warning   CS0618  'GizmoType.SelectedOrChild' is obsolete: 'Use
    InSelectionHierarchy instead (UnityUpgradable) ->
    InSelectionHierarchy'</p>
  </blockquote>
  
  <p>So not sure how to use this Gizmo at all.</p>
  
  <pre><code>void Update()
      {
          if (MyCommands.walkbetweenwaypoints == true)
          {
              WayPointsAI();
          }
          // create lines between each checkpoint //
          for (int i = 0; i &lt; waypoints.Length - 1; i++)
          {
              Debug.DrawLine(waypoints[i].transform.position, waypoints[i + 1].transform.position, Color.blue);
  
          }
  
          // create line between original transform start position 
          // and the current transform position //
          Debug.DrawLine(originalPosition, transform.position, Color.red);
  
          // create a line between current transform position and the next waypoint target
          // each time reached a waypoint.
          Debug.DrawLine(target.transform.position, myTransform.position, Color.green);
      }
  
      [UnityEditor.DrawGizmo(GizmoType.SelectedOrChild | UnityEditor.GizmoType.NotSelected)]
      static void DrawGameObjectName(Transform transform, UnityEditor.GizmoType gizmoType)
      {
          Handles.Label(transform.position, transform.gameObject.name);
      }
  </code></pre>