Search Unity

  1. Unity 2019.1 is now released.
    Dismiss Notice

2d sorting layer issue

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

  1. mholmes

    mholmes

    Joined:
    Dec 8, 2012
    Posts:
    174
    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:
    882
    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:
    174
    Thanks