When you create a widget component - of a type that comes with a variable by default - under another component, and then replace that parent component with its child, a large number of unwanted duplicate variables are created.
The examples below all use Named Slot, but the same issue will also occur with other types of widget component, such as Images, ComboBoxes, and so on.
It does not appear to happen for widget types that do not have a variable enabled by default, such as Texts.
Steps to reproduce:
- Create a new widget
- Drag a Named Slot component underneath the default Canvas Panel
- Right-click on the Canvas Panel and select Replace With->Replace With Child
- Switch to the Graph view
Expected Result:
- There should be one variable for the Named Slot
Actual Result:
- There will be a large number of variables of type “Named Slot”, named NamedSlot_1, NamedSlot_2, etc.
Notes:
- The number of variables created appears to depend on how long the context menu was left open before selecting “Replace With Child”. I left the window open for ten minutes with the context menu open and the mouse hovering over “Replace With Child”, and it created over 60,000 variables when I finally clicked it.