Search Unity

2d sorting layer issue

Discussion in '2D' started by mholmes, Nov 7, 2018.

  1. mholmes

    mholmes

    Joined:
    Dec 8, 2012
    Posts:
    414
    I'm not sure why but I had to move my object in the hierarchy in order for it to be in front of another object:
    sorting layer issue.png

    Big Rock 3 is on sorting layer Objects_3 and Big Rock 2 is on sorting layer Objects_2 which should be behind layer Objects_3 I thought. am I misunderstanding how sorting layers work in Unity?
     
  2. PGJ

    PGJ

    Joined:
    Jan 21, 2014
    Posts:
    899
    It is because your object are located inside a Canvas. Canvas objects are placed according to their position in the hierarchy
     
    Last edited: Nov 9, 2018
  3. mholmes

    mholmes

    Joined:
    Dec 8, 2012
    Posts:
    414
    Thanks