Developer Notes

This should no longer be an issue as of 4.13, we no longer use MarkPendingKill() in the WidgetComponent.

Description

When SetWidget is called, the call to Widget->MarkPendingKill(); causes the widget to lose functionality if the widget being created is the same as the widget previously removed.

Steps to Reproduce
  1. Download and unzip attached project
  2. rebuild .dll's and open project
  3. Start the game in PIE
  4. Press "M" for Menu
    • Note the print string messages
  5. Close the Menu with the Button "PC Hide Menu"
  6. Press "M" for Menu again

Result:
The widget is added to the screen the second time, but no interaction with the widget can be made. Additionally, the SetInputModeForClass() is called from code but the event node in the widget blueprint does not fire the second time (print string does not show up on screen)

Expected:
The widget can be interacted with and the even node is called.

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

0
Login to Vote

Fixed
ComponentUE - Editor - UI Systems
Affects Versions4.12.5
Target Fix4.13
CreatedJul 26, 2016
ResolvedJul 29, 2016
UpdatedMay 2, 2018
View Jira Issue