- Home /
Making my canvas in front of another canvas
so i created a message box with button via canvas (int the Canvas Manager Dice), currently, that box (white) is in the back of the enemy ui (black on the top right, in the Canvas Manager Enemy)
what i want is the white box is in front of the black box, i have tried to move them in hierarchy but nothing changed, what should i do??
Answer by TanselAltinel · Nov 08, 2017 at 09:42 AM
Hi Molten-Path,
If you have your elements on different Canvas elements, you can simply use sorting order of Canvas to change order and bring your element forward:
If all of your elements are under one single canvas, then you'll need to change both hierarchy and Z position of your elements to bring them front.
whoa that is a new things to me, thanks to pointing that out
I'm glad it's sorted out for you! Happy developing :)
@TanselAltinel Could you please give me a bit more information on this because now I have 2 canvas, one is for both of my cameras to render so I set this Render $$anonymous$$ode to Screen Space - Overlay, and my another canvas is set to Screen Space - Camera. And I just want to move my child an image inside canvas that render to one camera, but stuck. It stays on the back of another canvas. I already changes the value of "Order in layer" & "Sort Order" for both of the canvas but couldn't fix that. Thank You in advance!
If the answer which is already accepted does not help you, then your question is different.
Please open a new topic
Also, in the future, please refrain from resurrecting an already answered question from over a year ago.
Your answer
![](https://koobas.hobune.stream/wayback/20220612142546im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Why doesn't my UI cover fullscreen on android? 0 Answers
How to show my Buttons over texture ? 0 Answers
Can CanvasRenderer provide third UV coordinates? 0 Answers
How to attach a (that world type) canvas to a moving player? 0 Answers
How do I make a line render always be pointing at the center of the canvas/gui 1 Answer