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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

How can I set sorting order of TextMeshProUGUI?

Discussion in 'UGUI & TextMesh Pro' started by DevGulpi, Aug 25, 2021.

  1. DevGulpi

    DevGulpi

    Joined:
    Aug 6, 2021
    Posts:
    17
    My TextMeshProUGUI text is hide behind of the background image.
    Changing background image's sorting layer is works but then, background image turns darker than original image so I want to change just sorting order of TMP.
     
  2. Stephan_B

    Stephan_B

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    6,588
    When using the Canvas system, sorting order is based on the order of the objects in the scene hierarchy.
     
  3. DevGulpi

    DevGulpi

    Joined:
    Aug 6, 2021
    Posts:
    17
    Oh I got hint by the canvas system. The background image was sprite renderer, not the image. Thank you so much!