docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Text Width

    Use the <width> tag adjust the horizontal size of text area. The change takes effect on the current line, after the tag. Typically, you place the tag at the start of a paragraph.

    If you add more than one ,width> tag to a line, the last one takes precedence over the others.

    You can specify the width in either pixels, font units, or percentages. The adjusted width cannot exceed the TextMesh Pro object's original width.

    The closing </width> tag reverts to the original width.

    Example:

    I remember when we had lots of space for text.
    <width=60%>But those days are long gone.
    


    Adjusting text area width

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)