public GameObject Text_Object;<br /> private Text textComponent;<br /> void Start () {<br /> //gets the text UI Object in canvas component<br /> textComponent = Text_Object.GetComponent<Text>();<br /> textComponent.text = "Hello";<br /> Text2();<br /> }<br /> <br /> void Text2(){<br /> textComponent.text = "Hey";<br /> }
textComponent.text = textComponent.text + "Hey";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)