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

Question How to make the button reflect my TextMeshPro settings? Unity 2020.1f1

Discussion in '2D' started by kristosaber, Feb 12, 2021.

  1. kristosaber

    kristosaber

    Joined:
    Jan 20, 2021
    Posts:
    33
    Hi,

    I'm trying to create a start button using this tutorial:
    https://www.gamedevelopment.blog/unity-2d-game-tutorial-2019-main-menu/

    Even though the tutorial may not be using the same Unity version, I believe the settings is still somewhat the same.
    I may have missed out something. Putting the setting of TextMextPro in the My Text(TMP)button cannot produce the orange/ red colors that I wanted.
    hierarchy.JPG

    button.JPG

    button1.JPG

    Any help would be appreciated. :D
     
  2. kristosaber

    kristosaber

    Joined:
    Jan 20, 2021
    Posts:
    33
    I managed to solve my problem. I pull the TextMexhPro to the MainMenu and put it back at the Text. It then works. Not sure why, probably due to the layer placement.
     
  3. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    10,529
    Please note that the 2D forum is for 2D features. TextMeshPro is a UI feature and there's a dedicated forum for it here.
     
  4. kristosaber

    kristosaber

    Joined:
    Jan 20, 2021
    Posts:
    33
    Noted.