- Home /
Sorting Layer not working
Hello Guys,
I have a question, my object always shows under my background object. I have set my Sorting Layer and Group as below for my background and objects. Where is my mistake?
This is my object
This my background object.
Answer by The_Icaruz · Oct 16, 2018 at 06:25 AM
Hello, sorry to ask but is your project in 2D ?
I hope I'm not wrong with this but, maybe the Z-Axis value of your background object causes this problem.
The wall is at Z-Axis value "0" and the background "infront" with Z-Axis value "2.33"
When both objects are on the same Z-Axis value you shouldn't have a problem with your sorting Layers.
Let me know if this helped or if your problem still exists.
Edit : Typo
Actually the game is 3D, and Y is the deter$$anonymous$$ing factor if the object is on the background or not. So both of them have Y as 0.
$$anonymous$$y shader is using transparency, do you this is the reason. If it is how can I make it so the wall object is on not in the background.
Thank you.
Your answer
Follow this Question
Related Questions
2D Parallax Background 4 Answers
Leapfrog background set pieces as camera scrolls? 2 Answers
The Parallax goes way too fast 2 Answers