- Home /
Have trouble with UI arrangement.
I have some trouble with arranging UI elements. I thought that objects in canvas are drawn from top to bottom and the lowest one should appear in the front, but it don't seem to be the case. I probably am missing something.I want the box sprite to be in front of the joystick and "button," and also be behind "New Text" * 2 and "continue".
Now when I try to move the joystick back, it seem to takes everything other than the box with it. I apologize if this is a duplicate question, but I really can't find any solution.
Hi James1212312121, is there any canvas component attached to the joystick/button/box ? If the property "Override Sorting" of the child Canvas is ticked and its "Order in Layer" is 0, then it may cause this kind of sorting problem. If so, maybe you can untick "Override Sorting", or set the "Order in Layer" to other value.
Answer by GoldenretriverYT · Aug 13, 2020 at 08:54 PM
a) Change your view from 2d to 3d (press the 2d under the scene button next to the dropdown) b) change the z-position manually
Answer by loljoch · Aug 13, 2020 at 08:59 PM
You might want to restart Unity if it is not rendering from top to bottom, otherwise you should start simple and just make the new text object, continue button and box, and first get that working. When you have those 3 working you just add your old UI and see when something goes wrong.
Your answer
![](https://koobas.hobune.stream/wayback/20220613005548im_/https://answers.unity.com/themes/thub/images/avi.jpg)