I have a string variable and I have text. I would like to make my text equal to my string variable through scripts. Can somebody please help me?
Hi,
https://docs.unity3d.com/ScriptReference/UI.Text-text.html
Instead of
m_MyText.text = "This is my text";
Use:
m_MyText.text = **your variable**;
And if it’s not clear enough: Updating Unity 5 Text Elements with C# Scripting (Basic Tutorial) - YouTube
Cheers