Changing ZOrder of Widget Component at runtime causes crash

If you change a widget component’s ZOrder whilst the game is running it will crash the editor and game.
Also there is no apparent way to change a component widget’s ZOrder programically via blueprints… which seems like an oversight.

The only work around I’m able to do is a little hacky, but remove from parent and then readd it back. This will change the Zorder.

So basically, I create an array, remove the widgets, sort them, then add it back to the viewport in proper sequence.

Its not ideal, but it works until a better solution is in place. =)

Hello ,

Have you tried slotting the widget as a canvas and then setting the zorder for the widget? I have provided an example below. I hope that this information helps.

Example:

55563-setzorderhelp.png

Make it a great day

That does not seem to have any effect on the the component widget’s zorder in the world, it only seems to change the zorder of the widget in the component widget.

Hello ,

I misread your post. I did not realize that you were using 3D Widgets. As to the issue dealing with layering. There is a feature request that has been sent to the developers for further consideration that deals with the layering for widgets. Thank you for your time and information.

Make it a great day

How do you re-add a widget back to its parent?

Any updates on this? The Rendering > Translucent Sort Priority doesn’t seem to work too.