Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

how do I get Images to push the text to a newline in textMesh Pro

Discussion in 'UGUI & TextMesh Pro' started by Android272, Nov 13, 2019.

  1. Android272

    Android272

    Joined:
    Oct 14, 2016
    Posts:
    22
    In my game, I would like to add images in the middle of paragraphs of text. I see that TextMesh Pro has the ability to add images to text but it seems as though the only use right now is to add emojis and controller button images.

    On the left is how my game looks currently and the right is how I want my game to look. I want the image to push text that comes after it below the image. Can anyone help me achieve this?

    Here is what the text looks like in the code.

     
    Last edited: Nov 13, 2019
  2. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    Is this image referenced in the text or is this image a separate object?

    mid it is a separate object, you could use the Linked Overflow mode. See the Linked Text example included in the TMP Examples & Extras.
     
  3. Android272

    Android272

    Joined:
    Oct 14, 2016
    Posts:
    22
    Sorry, I forgot to mention that. Yes, the image is referenced in the text. Here is what the text looks like in the code.