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

Question How to get height of a given number of lines

Discussion in 'UGUI & TextMesh Pro' started by tomkail_betterup, May 19, 2023.

  1. tomkail_betterup

    tomkail_betterup

    Joined:
    Nov 17, 2021
    Posts:
    106
    Hi! We'd like to calculate the height of a given number of lines for a text mesh pro element. Assumes no paragraph breaks, just "standard" lines of text. What's the best way to go about this?