Search Unity

Question Misaligned text in build mode but not in scene/game view

Discussion in 'UGUI & TextMesh Pro' started by Astraspis, Jan 8, 2023.

  1. Astraspis

    Astraspis

    Joined:
    Feb 22, 2021
    Posts:
    9
    Hey,

    I'm trying to display some UI elements in unity with ASCII. I created a canvas and new text mesh pro text element, copying in the ASCII text, and it displays in both the scene and game view with absolutely no problems. As soon as I click the build button and view my scene that way, one row of the ASCII text gets repeatedly misaligned.

    Scene/game view:
    Before Build.png

    Build mode:
    After Build.png

    Is this just a bug or am I doing something wrong?

    Method of repeating:

    -Create scene
    -Create canvas
    - Create new UI text mesh pro element
    -Copy in the following ASCII text (a different font may be require to make it look right)

    ________________
    / _/ ____/ ____/
    / // / / __/
    _/ // /___/ /___
    /___/\____/_____/

    -Observe difference in both scene view and build mode

    Thanks,

    Dan