#UI

1 messages · Page 1 of 1 (latest)

stray haven
#

ok so i have a menu in the form of UI (canvas layer) and I'm trying to make it when you click the end game button another UI menu appears and asked if your sure i have it popping up but it is being placed behind the menu screen

lament carbon
#

The draw order is determined by the position in the tree, make sure the new node is below this main menu in the SceneTree

#

Nodes are drawn from top to bottom.
So those further down are drawn last AND over those that came before.

stray haven
#

but

#

but its not in that scene

#

so i cant choose how high it is

arctic jay
# stray haven

Z index will override tree position. So be sure the z index is not higher on the buttons menu

#

I also recommend switching your Sprite2D for a TextureRect. So all your UI elements are Control based

#

Where is the popup in this hierarchy?

#

Check the remote tree

stray haven
#

its not in the tree though so i cant set its hight (im sorry if im not understanding im kinda new to godot)

arctic jay
#

When you run the game you can open the Remote Tree

#

That will show the tree in runtime

#

So when you open the popup you will see it there

stray haven
#

but it saying its on the top

arctic jay
#

Change the CanvasLayer layer