UGUI HUD text size problem
- gui123
- New Member
- Posts: 2
- Joined: Fri Dec 11, 2015 2:10 pm
Hello, I've purchased the UGUI HUD through unity asset store. I managed to bind it to an object, I can change text color, speed etc. However the text size doesn't seem to be changing. I put 1,10,5000 when I call the function, still the text size is the same.
- Lovatto
- Admin
- Posts: 1834
- Joined: Sun Dec 07, 2014 3:18 pm
- Contact:
Hi.
- due to the appearance we limit the default font size to a maximum of 20, but of course you can increase this limit by simply changing this:
in bl_HUDText.cs in the line 198 (for default) have this code:
you simple need increase the max (20) to your taste.
Regards.
- due to the appearance we limit the default font size to a maximum of 20, but of course you can increase this limit by simply changing this:
in bl_HUDText.cs in the line 198 (for default) have this code:
Code: Select all
fontSize = Mathf.Clamp(fontSize, 1, 20);
Regards.