Search Unity

Question Issues with cameras, buttons and TextMeshPro.

Discussion in '2D' started by sunsetworld, Oct 26, 2021.

  1. sunsetworld

    sunsetworld

    Joined:
    Jul 21, 2020
    Posts:
    23
    Hey there.

    I'm having issues with my buttons and my TextMeshPro. It won't show up on the game screen. Additionally, unless I pair my buttons with my BackgroundCanvas, they disappear.

    What should I do?

    Thanks.


    upload_2021-10-26_18-16-31.png upload_2021-10-26_18-15-19.png upload_2021-10-26_18-16-38.png
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,742
  3. sunsetworld

    sunsetworld

    Joined:
    Jul 21, 2020
    Posts:
    23
    I've tried changing the Canvas Scaler but it didn't bring the buttons back and made the background disappear.
     
  4. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,491
    Please try to use the appropriate dedicated forums for topics. The UI forum is here.
     
  5. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,742
    Don't "try changing" it... learn how it works. The canvas scaler and anchoring is almost certainly the issue here and if you just wiggle a few values and give up, you are unlikely to attain success. The links I posted above have examples of how to reason about what the anchoring and scaling should be to get what you want.