docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Horizontal Space

    Important

    This package is deprecated. From Unity 2023.2, TextMesh Pro is part of the Unity UI (uGUI) package. For current documentation, refer to TextMesh Pro in the Unity UI package.

    The <space> tag inserts a horizontal offset, as if you inserted multiple spaces.

    You can specify the offset in pixels or font units.

    When the <space> tag touches adjacent text, it appends or prepends the offset to that text, which affects how the text wraps. If you do not want the offset to wrap independently of adjacent text, make sure to add a space character on either side of the <space> tag.

    Example:

    Give me some <space=5em> space.
    


    Adding some space

    In This Article
    Back to top
    Copyright © 2026 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)