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.
asked Jan 13 '17 at 10:59 PM in Blueprint Scripting
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.
answered Nov 27 '17 at 10:20 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here