how to make the node i click always on top of other node?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By potatobanana

i have two Control Node overlaps each other. how can i make the node that i click will show up on top of other node?
if i put my node under canvasLayer/node2d/area2d , sure it will pop up but my drag and wont work like in this video.

video on youtube

:bust_in_silhouette: Reply From: Asthmar

A picture of your node tree could help specify your problem.

But you can try putting raise() in the node you want ontop ready function

here i put video.

potatobanana | 2021-07-07 23:40

thanks it work

potatobanana | 2021-07-08 00:07

:bust_in_silhouette: Reply From: vnmk8

you can place them inside area nodes and change the areas z-index values on click

i did try do like you say, but with canvasLayer, the problem is, when i use area/canvas/node2d. my drag and drop somehow did’t work. you can see the video i just upload to utube,

thanks but it solve buy using raise

potatobanana | 2021-07-08 00:00