Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

TextMesh Pro text vanishes in fullscreen mode at certain resolutions

Discussion in '2D' started by Fe0dor, Sep 27, 2020.

  1. Fe0dor

    Fe0dor

    Joined:
    Jan 18, 2020
    Posts:
    17
    Hi,

    I build a main Menu for my game, basically a few buttons and one(!) TMP text box showing the current highscore. Somehow the text box vanishes in fullscreen mode and fullscreen mode only.

    The UI scaling mode of the canvas is set to Scale with screensize.
    If I dont 'maximize on play' everything is shown perfectly and I made sure non of the textboxes are offscreen.
    Maybe there is someone who had the same problem or just has an Idea what went wrong.

    Thanks in advance
     

    Attached Files:

  2. eses

    eses

    Joined:
    Feb 26, 2013
    Posts:
    2,637
    Hi,

    Are you aware that there is a separate UI forum for UI questions?
    https://forum.unity.com/forums/ugui-textmesh-pro.60/

    But anyway - you don't mention anything about how you have setup your UI RectTransform anchors, so I have suspicion that you have setup those incorrectly for that element.

    And how have you setup your TextMeshPro text scaling?

    Without images of editor / components it is pretty much impossible to say...
     
    Fe0dor likes this.
  3. Fe0dor

    Fe0dor

    Joined:
    Jan 18, 2020
    Posts:
    17
    nvm I figured it out... The text along with the "back" and "delete" button were all part of a Game object and aparently it shifted the textbox offscreen because its position wasnt set to 0,0,0 ... but thanks anyway