Layering UI elements?
I recorded a small video of the issue, despite being in front of everything the button is invisible. I have a dark alpha image that I want to put in between the settings menu and the background to fade that stuff out in the background. Similar issue. Is this a bug or what am I doing wrong? https://www.youtube.com/watch?v=jiL_9MoI3sg
Are you sure you don't disable the button gameObject using a script?
No none of the UI elements have any scripts, when you click on them they call a function but this isn't even happening in the game but in the scene view so. I assume you had a look at the video, strange.
Answer by djordr · Apr 26, 2018 at 11:37 PM
Ok I figured it out, I had to create one canvas for each UI element. Set all the canvases to screen space camera. Apply scale with resolution to each canvas and then on top of that I had to mess around with the sorting layers of the sprites until it somehow worked. What an absolute mess, would have been much better if buttons also had sorting layers and you could just sort stuff by that instead of having to create canvases.
Your answer
Follow this Question
Related Questions
How can I raycast gameobjects with specific layer ? 1 Answer
Some elements of UI have glitched on older Android device 1 Answer
Unity 5.3 Android UI Glitch 12 Answers
Text Mesh Pro UGUI blocked by 3d model 1 Answer
Make everything above the floor my player is standing invisible when my camera cant see my character 0 Answers