How to re-order a widget in the viewport?

I’m trying to implement a user interface similar to Windows. As in, the player can have multiple windows open, move them around, minimize/maximize etc. The problem is that I want to make it so that if a player clicks on a window, it will focused on and be sent to the front, overlapping all other windows (widgets, in this case). This is, somehow, not a feature. Is there some kind of way to work around this? I would be immensely grateful.

1 Like

Based off of another answer to a similar question (I can’t find the link to it now…)

Z-Order is only used for child components within a widget itself, and NOT within the overall viewport.

Widgets will be “ordered” in the same manner that they are added to the viewport. Meaning that the most recently added widget will be on top of all others preceding it.

I know that is still the case up to 4.15… I don’t know if Epic has bothered addressing this issue in any of the later versions… It’s likely a low priority for them.

I realize this is an older post but were you able to solve the situation you describe? I am trying to do a similar thing you describe and I’d be grateful if you could share your experience. Of course, if you were able to solve your situation.

Thanks!

1 Like