Making multiple 2D objects overlapp correctly
Hi,
I'm pretty new to unity and I'm struggling with overlapping sprites where the child object (eyes and wings) of the parent (chicken) the seem to "merge" into each other in a weird way (please see attachment).
The parent-object is a bone based animated object where each body part is it's own object. Each body part has its' own sprite renderer. The parent chicken object and all body part's z value is set to 1.
What I want is to have either of the chickens fully overlapping the other without the body parts mixing together, but changing the z value doesn't seem to help.
Any help is greatly appreciated, thank you!
Have you tried changing the sorting layer for the sprites?
Thanks for the comment. I find the "chicken"-object to only be rendered incorrectly when colliding with other object of the same type and not towards other object such as the background or foreground objects.
I've tried experimenting a bit with sorting layers, but since both object are of they same prefab, they are also in the same sorting layer. Or do you suggest I should give each child a different layer?
Your answer
Follow this Question
Related Questions
2D-Sprite Bug? 1 Answer
Why is it that some sprites render in game view and others do not? 1 Answer
Sprite not visible? 7 Answers
How to optimise 5000 sprites? 1 Answer
Can we change Z direction so that 2D renders Back to Front ? 0 Answers