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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Resolved UI Elements Order in Layer

Discussion in 'UGUI & TextMesh Pro' started by Oiluuuj, Jan 16, 2021.

?

UI Elements Order

  1. Canvas

    75.0%
  2. Sorting Layer

    25.0%
Multiple votes are allowed.
  1. Oiluuuj

    Oiluuuj

    Joined:
    Jan 14, 2021
    Posts:
    1
    Hello everyone! I saw a lot of people wanting to change the UI Elements order, not only to put the text above another and something like this, but too about putting the text above sprites and so on. This works for all the cases.


    To Order the UI elements you need to:

    1. Go to the Canvas Game Object:
    upload_2021-1-16_20-18-15.png

    2. In Canvas Component you need to turn the Render Mode from Screen Space - Overlay to Screen Space - Camera:
    upload_2021-1-16_20-22-32.png

    3. Then you will see that the Sorting Layer and Order in Layer appeared. So you can change the Sorting Layer to the layer that you want to, and the order in that layer:
    upload_2021-1-16_20-29-3.png

    upload_2021-1-16_20-29-34.png

    upload_2021-1-16_20-30-41.png

    I'll be happy to reply your questions. Thanks!
     
    TwoSoulFox, dreamyguy and Kertaix like this.
  2. TwoSoulFox

    TwoSoulFox

    Joined:
    Jul 10, 2022
    Posts:
    5
    Order Number of UI elements is so important.
    Was raycasting into oblivion checking the Event Systems lower right bottom box on play. Button was driving me crazy.