docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Horizontal Position

    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 <pos> tag gives you direct control over the horizontal caret position. This works best with horizontal alignment.

    The <pos> tag's position in the line has no effect on the caret position.

    This tag is best used with left alignment.

    You can specify the horizontal position in pixels, font units, or percentages.

    Example:

    at <pos=75%>75%
    at <pos=25%>25%
    at <pos=50%>50%
    at 0%
    


    Setting caret positions

    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)