Answers for "how to change text to bold through script unity"

C#
0

how to change text to bold through script unity

//Do this for bold
GameObject.Find(/*PutTxtNameHerein""*/).GetComponent<Text>().fontStyle = FontStyle.Bold;

//and this for normal
GameObject.Find(/*PutTxtNameHerein""*/).GetComponent<Text>().fontStyle = FontStyle.Normal;
Posted by: Guest on April-15-2020

Code answers related to "how to change text to bold through script unity"

C# Answers by Framework

Browse Popular Code Answers by Language