Search code examples
c#unity-game-enginetextmeshpro

Text Wrapping Is Changing When I Press Play Unity(Closed)


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


Solution

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