Using Textmesh Pro Unity Script, On a typical text UI component I would just use “Text” and make it a public variable.