Description

UMG Visibility binding resets to default after closing and reopening project first time. "Get Visibility" on Button click boolean toggle for widget blue print "False" return node value gets automatically switched from "Collapsed" to "Visible". After resetting it back to "Collapsed" and re-saving, visibility binding works as intended on subsequent project reopenings.

This is a regression.
This is working on 4.16 3-3561208
This is not working in 4.17.1-3586342 and Main.

Steps to Reproduce

Note- This can only be reproduced from scratch so a test project cannot be included.

  1. Create blank project with no starter content.
  2. Create a Widget Blueprint with Button and Text Box.
  3. Create Button Event OnClicked with visibility toggled by boolean: True>Visible, False>Collapsed as shown in attached image WidgetBP1.
  4. Back in the Designer, Go to Details panel> Behavior> Visibility > Bind> Create Binding
  5. Inside Binding function graph, create Blueprint as shown in attached image WidgetBP2.
  6. Back in main editor viewport, go to Blueprints> Open Level Blueprint
  7. Set up "Event BeginPlay" event graph as shown in attached image LevelBP.
  8. Save everything and Play in Editor. Widget text will toggle visibility on button press as intended.
  9. Close editor and reopen project.
  10. Play in Editor> Press button to attempt toggle visibility of text.

Results: Text remains visible on button press.

Expected: Widget text will toggle visibility on button press as intended.

If binding function graph is re-opened and set back to desired value False> Return Value> Collapsed and project is saved, closed, and re-opened, the issue does not occur again.

Have Comments or More Details?

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

1
Login to Vote

Cannot Reproduce
ComponentUE - Editor - UI Systems
Affects Versions4.17.14.18
Target Fix4.24
CreatedAug 31, 2017
ResolvedJul 23, 2019
UpdatedApr 16, 2021
View Jira Issue