"Remove From Parent" breaks the UMG!!!

After you use “remove from parent” and then “add to viewport” a widget with a spinbox, the spinbox will break.

If you bind the spinbox value to a text UI, its value will not update and remain 0.0

It seems that once you remove from parent a widget with a textbox, and then add the widget back to viewport, it is not possible to modify the textbox using the blueprint… however, it is possible to read from the textbox.

(Maybe these two problems are related?)

The method I am using to remove a widget from a parent and then add to viewport is the one used in drag and drop functions found in this tutorial: Drag & Drop with UMG | 01 | Live Training | Unreal Engine - YouTube… Where you remove the widget which you are dragging from the parent… Then, add the widget which is being dragged to the viewport “on drop” in the HUD

It seems this also prevents you from adding and removing children on uniform grid panel… however, it doesn’t stop you from modifying and interacting with the widgets which are already on the uniform grid panel

Hello Espii77,

I have a few questions for you that will help narrow down what issue it is that you are experiencing.

Quick questions:

  1. Can you reproduce this issue in a clean project?
  2. If so, could you provide a detailed list of steps to reproduce this issue on our end (just the issue)?
  3. Could you provide screen shots of any blueprints that may be involved?
  4. Are you using the bind feature to set the text that you are seeing this issue with?

Create WidgetBlueprint>UserWidget and name it “TestWidget”

Create BlueprintClass>DragAndDropOperation and name it “WidgetDrag” and Create Exposed/Editable Vector2D Variable and reference to Widget

Override TestWidget’s OnMouseDown

Override TestWidget’s OnDragDetected

Bind Text on the TestWidget to the SpinBox

[Continued Below]

Create new UserInterface>WidgetBlueprint and name it “UI”. Then, Drag TestWidget onto the canvas panel and set the Visibility on the Canvas Panel to “Visible”

Override “UI” OnDrop

Now When you press play and edit the spinbox, the text updates to match it.

However, after you click and drag the “TestWidget” the text no longer updates to match.

The similar things occur when you create a TextBox and then try to edit that same textbox after drag.

If you Create an Uniform Grid Panel and try to add/remove widgets onto the panel after you have clicked and dragged, it does not work.

Hello Espii77,

After taking a look at the new information provided. It appears that this is a known issue (UE-31777) and that is has been submitted to the developers for further consideration. I have provided a link to the original post below. Please feel free to visit the provided thread for future updates. Thank you for your time and information.

Link: UMG Widgets variables stop updating SetText after drag and drop operation - UI - Epic Developer Community Forums

Make it a great day