- Home /
How to move object in front of another object?
I am a beginner with Unity. I have a problem where I have this skeletal animation (image) and I want it to be positioned behind a bush (image) but the thing is, the skeletal animation is always positioned in front of everything else. I have tried manipulating the hierarchy but it didn't work. It's not a sprite as sprite doesn't allow psb file to be its image so I can't do it through the 'order in layer' like in the tutorials I see on youtube :(,Hi, I'm a beginner. I have a skeletal animation object (image) and I want it to appear behind a bush (image). But the skeletal animation object seems to always stay in front of everything. How do I fix this? it is not a sprite so I can't adjust it through layers. And I've been moving it around through the hierarchy but nothing seems to work? :(
Answer by GrayLightGames · Oct 21, 2019 at 06:58 AM
If you change the canvas to world space, you can specify a sorting order for the canvas. Its the best solution i've been able to find, but the image / sprite interaction seems a bit clunky. If someone knows a cleaner way, please post. If the image and the bush are on the same canvas, then hierarchy should sort it out. You can always separate the skeleton to its own canvas and then use sorting layer. Hope that helps!
Your answer
![](https://koobas.hobune.stream/wayback/20220612213649im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Unity 2D animation layers stop other animation layers. 0 Answers
Spine animation: how to use a skeleton from a project to transfer to a new project in Spine? 1 Answer
my character has different root bone scale to other bones and two bones IK not work correctly 1 Answer
Assigning a clothing object to a character's skeleton? 3 Answers