How do you Control the Z Order of Widgets? Canvas Panel Confusion

Hey all, I’m having some issues getting a drug widget to appear on top of other widgets. I thought the solution would be to just change the z order of the widget to be higher than those below it, but it looks like z order is only for controlling the layering of slots within a specific widget and not between widgets themselves.

How would I go about getting my drug widget to appear on top of the others? In this case, I have a hand of cards, and I want the selected card to appear on top of the others for readability.

Card Widget Design:

Card Widget Graph:

Card Hand Widget (holds the above cards) Graph:

Desired:

Thanks!

So I was able to get it working by adding the drug card as a child to the card hand widget, however now I’m not sure how to insert the card back into the hand in the correct place.

Graph Edit:

Looking Correct on Drag:

Needing to be Ordered Correctly Again After Drag Release:

I figured it out! Added a new function on the Drag Stopped event that cleared the children from the parent widget, and then re-added them.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.