- Home /
Is there a way to restrict layering within a gameobject?
I have two prefab characters that are using a paperdoll method of placing equipment on the sprites. I'm using a sorting layer to ensure that the equipment gets drawn in the correct order. The problem is that when I have two prefabs and one overlaps the other, the second's equipment is drawn over top of the first's face.
Is there a way to use the layer ordering specifically for a gameobject, and then somehow combine it so that they can all be on a single layer after processing?
Screenshot that illustrates the problem:
I think the proper way to do this would be to use "Order in layer" for parts of each animation and then "Sorting layer" for different animations
Your answer
Follow this Question
Related Questions
Cannot Set Sorting Layer Name in Nested Canvas Prefab 0 Answers
Okay This is Officially WEIRD! Layers flipping out by themselves. HELP 0 Answers
MonoBehavior Prefab modified by script in Editor loses changes when Play is hit 1 Answer
Instantiate at a position is sometimes instantiating at the wrong position 2 Answers
Destroying Prefab 0 Answers