How to fit text in certain area?

I’ve an entity in which I have to change the text in each collision ( the text will depends on the collision, it could be shorter or longer ). So, is there anyway that I can fit the text without getting out of the text area?

Text wrapped

Normal way

Hi @Axel_Saucedo,

Text elements provide a way to automatically wrap all lines to fit a certain width:

  • Disable Auto Width in your text element component
  • Set the correct Width that fits your container
  • Enable Wrap Lines, that should do the trick.
1 Like