Answers for "how to access a text gameobjceet in unity and change it"

C#
0

how to access a text gameobjceet in unity and change it

Text text = gameObj.GetComponentInChildren(typeof(Text)) as Text;
text.text = "text stuff";
text.font = prefferedFont;
Posted by: Guest on November-15-2020

Code answers related to "how to access a text gameobjceet in unity and change it"

C# Answers by Framework

Browse Popular Code Answers by Language