I recently upgraded from 3.4.8 to 3.5.1, and now...
UILable label;
lable.fontSize = N; // where N can be any integer
no longer works in all cases. I am using NGUI fonts (Arimo20 (UIFont).
In the simplest case, I have a UITexture + UILabel, and when I run the code, no matter the value I put in fontSize, it uses (I think) 20. This occurs whether I change the value in code or in the inspector in the prefab.
In another case, I have a UISprite + Box Collider + UIImageButton + UILabel, and this also ignores new values in fontSize -- the text itself doesn't get bigger on screen -- but it does compute the position of the label relative to the button correctly: the larger I make the font, the more it moves the label up and to the left. This sort of thing may be happening in the previous example, but i cannot easily tell by looking.
In a third case, also a UISprite + Box collider + UIImageButton + UIlabel, it works fine. I can't see any difference in the setup between these last two cases.
These all worked correctly in 3.4.8. Any ideas?
Thanks