Player inventory GUI & Chest/Loot GUI don't seem to be on the same layer

Godot Version

godot 4



I have two working inventory systems for the player and chests (probably isn’t very DRY but I’ll go back later and refactor :sweat_smile:).

Ultimately, I want to be able to move things across inventories, but currently when trying to drag items over the chest_gui items go under the player_inventory_gui, and the player_inventory_gui items go over the chest_gui.

Both nodes in the Canvas Layer are on the same visibility mask, light mask and Z index.

Is there anything in the Inspector or overall World Scene these live thats causing this?

If not, I’ll pick through the scripts to try and find the culprit.

Any help or insight is appreciated!


You said same z-index. Maybe there are other solutions, but can you change the z-index on the on the fly?

I actually just tried changing it in the Inspector and got this warning:

And it did fix the issue, the icons now seem to hover over the same layer. But with the wording of the warning, i may run into issues down the road when I actually want the 2 scripts to interact with each other?

So I may have to find a different workaround