title: How can i animate a String property in unity Animator?
body: <p>I am creating an animation in my Unity Game using Playable Directors and Animators, and i need to animate the contents of a TextMeshPro so it changes its text within keyframe, but there is no Text property in the animator.
  <br>
  I initialy thought that this was just with TextMeshPro, and changed my component to a normal Text component. No property found either.
  <br>
  My last try was to create a new script called TextAnimator, and a string property that changes the TextMeshPro contents in editor using the [ExecuteInEditMode] annotation.
  But when i tried to animate THIS property, it doesnt show up either!
  <br>
  Here is my component in game:</p>
  <p><a href="https://i.stack.imgur.com/EHuk7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EHuk7.png" alt="enter image description here" /></a></p>
  <p>Here is when i try to add the string property:
  <a href="https://i.stack.imgur.com/mDmvj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mDmvj.png" alt="enter image description here" /></a></p>
  <p>Here is the TextAnimator:</p>
  <pre class="lang-cs prettyprint-override"><code>using System.Collections;
  using System.Collections.Generic;
  using TMPro;
  using UnityEngine;
  
  [ExecuteInEditMode]
  public class TextAnimator : MonoBehaviour
  {
      public TextMeshProUGUI textUI;
      [TextArea]
      public string text;
      void Update()
      {
          if (textUI) {
              textUI.text = text;
          }
      }
  }
  
  </code></pre>
  <p>It seems that Unity can't animate strings at all, why is that? And what can i do as a workaround to make my animations?</p>