playMaker

Author Topic: GUI Text size[SOLVED]  (Read 1515 times)

dvdkss

  • Guest
GUI Text size[SOLVED]
« on: November 19, 2016, 03:28:02 PM »
I used this method to display lap time:
http://hutonggames.com/playmakerforum/index.php?topic=1711.0

The problem is that the text stretches as I change the aspect ratio of the screen. I managed to fix that by doing this:

This way the text won't stretch, but its size will change depending on the screen width. Is there a way to keep the original size of the text and at the same time prevent it from getting stretched when the aspect ratio changes?

I want it to act like sprites, in a sense that it keeps its position, size and width when I set a different aspect ratio.
« Last Edit: November 24, 2016, 01:55:31 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: GUI Text size
« Reply #1 on: November 21, 2016, 02:46:04 AM »
Hi,

 you are using the new Unity UI right?

 you'll need to edit your canvas gameobject and your canvas Scaler component to use scale with screen size Scale mode.

 Have you tried that?

Bye,

 Jean

dvdkss

  • Guest
Re: GUI Text size
« Reply #2 on: November 22, 2016, 12:59:20 PM »
Yeah, that was the problem, I was using the old UI.
It works perfectly now, thanks!