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

Multiple Canvas in different Sorting Layers don't block each other?

Discussion in 'UGUI & TextMesh Pro' started by Suguma, Nov 27, 2015.

  1. Suguma

    Suguma

    Joined:
    May 29, 2015
    Posts:
    26
    Hi,

    Is it possible to have two canvases in different sorting layers and have them block each other?
    I have two canvases on different sorting layers and I wanted the one in the front to block the one in the back. If I put both of them in the same Sorting Layer but different Order in Layer, this will work. But if I simply change them to the same layer, the front canvas will not even receive inputs.
    Both of them have the same Graphics Raycast configuration, btw.
     
  2. Suguma

    Suguma

    Joined:
    May 29, 2015
    Posts:
    26
    Woops

    The problem apparently was that I was putting the canvases in layers far too far apart...?
     
  3. Suguma

    Suguma

    Joined:
    May 29, 2015
    Posts:
    26
    Ok, so I'm totally confused right now.

    I had 5 sorting layers: Default, Main, Pop-up, Dialog, Foreground. Everything is in the Main layer is blocked by anything in the pop up or foreground layer, but not in the Dialog layer. I can change order and it keeps this way. Is there any layer specific configuration?