- Home /
How do you change font for new GUI system in unity?
I can't find anywhere to swap out to any font other than the default. Google just comes up with 5 million posts about how to change font size (people actually ask this?).
Answer by Mmmpies · Mar 05, 2015 at 12:36 PM
Can't test this but try this:
using UnityEngine.UI;
public Text MyText;
public Font MyFont;
// then where you want to set it
MyText.font = MyFont;
Just click the button to the right of the MyFont setting to pick the font you want to change it to, you probably want more than one but hopefully that should work. Not got access to Unity so can't test it.
I believe this works, but i should have specified in my question that i was looking for a way to do it in the inspector. Someone on a facebook post pointed it out to me, agh god... how did i not see it? it's right at the top.... my stupid eyes >_>
Anyway... I believer your method is also valid, so sure that can be answer for this question :)
Hey no problem @$$anonymous$$erihobo, I was doing a major system upgrade at work that took up too much of my brain. Spent half an hour trying to work out why my unity script wasn't working when I got home, eventually realized I'd typed
void Upgrade()
ins$$anonymous$$d of
void Update()
I'd looked at that line maybe a 100 times so you're in good company as far as stupid eyes go ;¬)
Your answer
Follow this Question
Related Questions
Is there a way to measure the pixel with/height of a string with a given font? 2 Answers
Cropped Label Problem - Big Font - Unity3D 1 Answer
Text Mesh Pro : Unable to use pull down menu inspite of Distance field 16 0 Answers
Use Unity UI For 2D Games Or Custom Objects Instead? 2 Answers
Displaying Mathematical Equations 2 Answers