#2d sprite over the canvas in unity?

1 messages · Page 1 of 1 (latest)

round anvil
#

How can i show the 2d Game object with sprite renderer over the canvas in unity? From what i understand, it seems like you can only set the ordering in layer for sprites. thanks.

queen oak
#

You can set the order for a whole canvas

#

Inside the canvas the element are ordered from top (will be below) to bottom (on top of the canvas) but they'll all have the same order in layer

#

Oh and you must have a canvas in world space

atomic onyx
# queen oak Oh and you must have a canvas in world space

Camera Space works as well for placing the canvas behind objects. It also has the advantage of otherwise still behaving like a screen space canvas (e.g. resizing and moving with the camera), which is harder to do with a World Space canvas.