- Home /
Question by
nahkranoth · Sep 14, 2010 at 10:54 AM ·
guitextguistyle
GuiStyle attachment problem
Hey,
I attached a GuiStyle to a GuiText.
public var myStyle : GUIStyle ;
function Update () { }
it appears in the property inspector of GuiText. But if i change some parameters, nothing happens. Text color doesn't change, word wrap doesn't word wrap.
can someone tell me what i'm doing wrong?
Comment
Best Answer
Answer by mbreen · Sep 14, 2010 at 11:03 AM
You may have to create the text and modify it in the script. If you use the OnGUI() function to create the text, the skin will be applied to it.
Your answer
![](https://koobas.hobune.stream/wayback/20220613073206im_/https://answers.unity.com/themes/thub/images/avi.jpg)