0

So I'm making a game with text as the diolauge and I turn off overflow in the tmp settings. And when I press play it just turns back on again I have some images as example. And I tried restarting unity but that didn't work.

Before Play

After Play

LeonTVRyt
  • 13
  • 4
  • Compare the inspectors before/after play to try pinpoint the issue in layout. – aybe Aug 19 '23 at 11:53
  • The only change is that the wrapping changed on when I pressed play and goes back to off when I stop playing – LeonTVRyt Aug 19 '23 at 11:57
  • What you can do is right-click each of these component you suspect and open them as individual windows so you can see them all at once on your screen. Then, watch carefully what changes in each of them. There's a strong possibility that some TMP property is responsible for this change. – aybe Aug 19 '23 at 12:03
  • Please provide enough code so others can better understand or reproduce the problem. – Community Aug 19 '23 at 18:33

1 Answers1

1

I fixed it on my own! I just had to use GetComponent().enableWordWrapping = true; in the start method!

LeonTVRyt
  • 13
  • 4