- Home /
Changing the text component via script?
Hi guys, I was reading the awesome answer provided by @mlabarca
http://answers.unity3d.com/questions/777335/46-ui-changing-the-text-component-via-script.html#
I was wondering 2 things about the chance of expanding this answer:
What if you have more than one line of text?, how do you edit one especific line of text?, I.E:
MENU
CONTINUE NEW OPTIONS QUIT
How do you edit the color of the text?
Answer by nirharpaz · Feb 08, 2015 at 10:10 PM
you need to have a canvas in unity 4.6 and under it put text fields. want several lines edited? put several text fields. in the text in the Text script, you can see the color option as well as other functions like choosing the size, font act
hope it helps
Your answer
![](https://koobas.hobune.stream/wayback/20220613182825im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Unity 4.6.3 - Cross Compilation Failed 0 Answers
Text blurred: uGUI 4.6 9 Answers
GUIText in Unity 4.6.9 2 Answers
Unity 4.6 Slider - Prevent Slider from moving 0 Answers
How to change alpha channel of ui image? 3 Answers