I have a newb question about layering. I think I've isolated the problem to the camera though

I have canvas with what I intend to be a background added. I’m trying to place other items on top of it, but they’re always appearing behind.

I tried adding the components in sorting layers and putting th eitems I want on top on the bottom of the list (at the greatest number value in the list), and that didn’t work. I also tried reversing that in case I had it flipped, and that didn’t work either.

I’ve also tried adjusting the “Z position” in the transform to really high (and low) numbers, and still this didn’t solve my problem.

Some extra information that might help is that when I was doing this there WAS one component that was showing up on top, that was now being place behind the background like the other objects.

There are a few different canvas modes which affect when they render, and what they render on top of. For your purposes, I recommend using a “world space” canvas so things will appear in front or behind based on position.

Another couple things to note:

  • Everything inside the canvas is rendered as one object ion the scene, so you can’t have a non-canvas object between 2 canvas objects.
  • The canvas uses a painters algorithm, which means every object inside the canvas renders on top of everything before it in the hierarchy. Z position does not matter for canvas object, but Z position does matter for the canvas itself (if you’re using world-space).