Hey guys,
So I've got some dynamic text that I want to concatenate some text onto. Sometimes, however, I want to change the font size of that text. At the moment my code looks something like this but it doesn't work; even if "anotherCondition" is met, the text (unfortunately) does not change:
Any ideas? Thanks! (I'll post my actual code if needed, but it's a mess and will need some cleaning up for readbility...happy to do so though if preferred)
Code:
myTextFormat = new TextFormat();
myTextFormat.size = 10;
myTextFormat.bold = true;
while(someCondition)
{
if (anotherCondition)
{
myTextFormat.size = 14;
}
accumulatingText.setNewTextFormat(myTextFormat);
accumulatingText.text += newText + newline;
}