In my game, I have UI text that I called a βlabelβ and I want to set its font programmatically. I tried to do this:
label.GetComponent<Text>().font="Arial";
I get an error because the font attribute does not want a string except the font. So, how can I customize the font on Arial programmatically?
nix86 source share