Setting up texts
UI Toolkit
From the UI Builder

Via Code
using UnityEngine;
using UnityEngine.UIElements;
using Febucci.TextAnimatorForUnity; // <- import Text Animator's namespace
public class ExampleScript : MonoBehaviour
{
[SerializeField] UIDocument document;
void Start()
{
var container = document.rootVisualElement.contentContainer;
var animatedLabel = new AnimatedLabel(); // <- create an animated label
container.Add(animatedLabel); // <- add it to the content container
// [..]
animatedLabel.SetText("<wave>hello"); // <- set the text
}
}Text Mesh Pro
