I have a start page with a play button, help button and an exit button. all work fine; but the exit button menu once clicked should bring up a second menu of
“Are you should you want to quit the game” then yes and no respectively.
The issue is this exit menu is stuck behind my title or splash screen meaning the items on the menu are unable to be seen and unable to click. Unless I move the splash screen out of the UI frame.
Could some explain what exactly is happening here, is it to do with layers?
UI can also have a depth, and you can adjust it with the Z values to arrange your elements. simply give your “are you sure”-menu another z-value (you have to test which value fits best, can’t remeber if higher values will put it in front or lower ^^ I would test higher values first
Did you check the values in the game view, they should stay the same…
another option is to arrange your elements in the correct order, the last added objects will be rendered over the earlier ones. your yes-no-menu needs to be on the last position (bottom of the canvas element list)