Disappearing widgets

hi everyone ı have one main widget and this widget contains child widgets like inventory and equipments widget. these child widgets can drag and dropable in main widget but when ı drop a widget to other one sometimes disappearing, how can ı solve that problem

My bet here is that it’s because of the Remove from Parent - who knows where that orphaned widget lives after that. The OP is referencing it, sure but if the OP gets scooped up by the Garbage Collection, you’ve now lost it.


Normally when you do that kind of dragging around, you create a new temporary widget that serves as a Drag Visual only - it’d be based on the widget you’re dragging.

This way you can now Hide the dragged widget instead of Removing it from Parent (so it looks as if you disappeared due to you dragging it away).

Here’s what I mean:

Essentially, you generally do not want to Remove from Parent during dragging. As soon as you drop and add the dragged widget to a new container, it will be automatically removed from its old parent anyway.

your advice is working for me thank you soo much ım still use remove from parent but when “on drop” action on main widget addding viewport and set position check the follow