title: How to access TextMeshProUGUI in Unity
body: <p>I have a Canvas with a button and a "TextMeshPro - Text" component. When I click the button I want to update the text of the textMeshPro component. This is the code I'm using:</p>
  
  <pre><code>var canvas = GameObject.Find("Canvas");
  var tmp = canvas.GetComponent&lt;TextMeshProUGUI&gt;();
  Debug.Log(tmp);
  </code></pre>
  
  <p>tmp is null but why? In the inspector I see it's an "RectTransform" with "Text Mesh Pro UGUI (Script)". I can access the RectTransform in the script but not the TextMeshProUGUI component</p>