title: Unity3d 2019.3.10 UnityEngine.UI; not found
body: <p>I want to display the number of coins on the screen, but I have error into my VScode:</p>
  
  <blockquote>
    <p>The type or namespace name "UI" does not exist in the namespace
    "UnityEngine"</p>
  </blockquote>
  
  <pre><code>using System.Collections;
  using System.Collections.Generic;
  using UnityEngine;
  using UnityEngine.UI;
  using UnityEngine.SceneManagement;
  
  public class Main : MonoBehaviour {
      public Player player;
      public Text coinText;
      public Image[] hearts;
      public Sprite isLife, noneLife;
  
      void Start() {
  
      }
  
      void Update() {
          coinText.text = player.getCoins().ToString();
  
          Lose();
      }
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/CsBHE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CsBHE.png" alt="enter image description here"></a></p>