How to change the order these widgets show live. When creating them you can set the ZOrder and it works, but when i try to modify live when playing the game nothing happens using the Set ZOrder node.
I have set the set zorder to run when i click the widgets blueprints.
Hey @eliel12234 ! How are you?
The ZOrder property is not accesible in runtime if you use the viewport but I think there are two ways to do this anyway!
The easiest one is to “Remove from Viewport” the widget you are clicking on and “Add to Viewport” the same widget immediately after that. This should “respawn” your widget on top without any issues.
The other solution is to create a new widget with a Canvas Panel and use it as a container for your other widgets, adding them to that canvas instead of the viewport. If you do that, you will be able to change the Z order for your widgets and almost any other property!
Let me know if this worked for you!