[Bug Report] Adding UWidget causes widget tree corruption

  1. Add a UTextBlock widget to any panel in a UserWidget.
  2. Name it “TextBlock_0”.
  3. On PreConstruct, create a bunch more of them and add them to any panel.

Notice that the created text widgets do not respect the names of already existing widgets. We now have 2 of “TextBlock_0”.

The bugs:
In certain situations this workflow lead to corruption where clicking a panel widget in the widget tree shows the properties and highlight of another panel. So far this lead to bugs on the editor panel like properties seeming to reset but actually showing the value of another panel. It has also lead to a crash when Justification is modified within a horizontal box with the error that it had been expecting the slot of a vertical box (other widget.).

Additional test:
The example used “Self” as an outer to construct widgets before adding them to the tree. “Self” being the UserWidget. If you replace Self with an Outer object of a panel in the widget tree, names will no longer be mixed up.