0
\$\begingroup\$

I have background which is FirsLayer, order in layer 0 and platform over it which is FirstLayer, order in layer 1.

enter image description here

Once I add a material to the platform, the layer doesn't seem to change but it gets rendered behind the background.

The material that I add:

enter image description here

1)Why do I get such results?

2) How can I add the material to the platform and still keep it above the background?

P.S. For further clarification if somebody didn't understand, I expected the sprite to stay on its original position(i.e. not to go behind the background when a material is being added to it)

\$\endgroup\$
2
  • \$\begingroup\$ This is pretty unclear. Tell us what you're expecting, more details on what's happening and what you've tried to do to fix it already. \$\endgroup\$
    – House
    Commented May 14, 2015 at 14:14
  • \$\begingroup\$ @Byte56 I know you're simply doing your work as a moderator and trying to help this community or whatever :D but I think that here the context of the questions says it quite clearly. I expect the sprite to keep its initial position(i.e. not to move behind or in front of some others) when a material is being added to it but for the sake of clarification I will write it down. Okay, fixed, and thanks! \$\endgroup\$
    – ZenVentzi
    Commented May 16, 2015 at 2:17

1 Answer 1

-1
\$\begingroup\$

1) Because if you want to use the sorting layers in unity, you can't use many of the materials that are available but only a few.

2) You're limited to only a few materials, which work in harmony with unity's sorting layers.

Cheers!

\$\endgroup\$
2
  • \$\begingroup\$ This doesn't actually answer the questions you yourself asked. It's just a description of the results. It doesn't answer "Why" or your second question. \$\endgroup\$
    – House
    Commented May 14, 2015 at 14:10
  • \$\begingroup\$ Okay @Byte56 everything is fixed! Hope it's better structured now. At first I answered in 1 simple sentece, because IMO it was pretty much the same as to separate it into two different. If you still think it doesn't fit, you can simply write the "good" answer yourself and I'm going to accept it, and done! Cheers! \$\endgroup\$
    – ZenVentzi
    Commented May 16, 2015 at 2:22

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .