Description

When using the Save Current button rather than save all, an actor that uses a variable with a struct will not retain data after the editor is restarted.

Steps from scratch:

  1. Open Editor
  2. Create a new struct
  3. Add a member
  4. Save
  5. Close Struct
  6. Create a new Actor blueprint
  7. Add a variable
  8. Make the variable a Tmap (Name: New User Defined struct)
  9. Save and Compile
  10. Close Blueprint
  11. Add actor to the level
  12. Add a new element to the TMap
  13. Change the name in the variable and set both members from the struct so something other than the default
  14. Use "Save Current" button
  15. Use default map name
  16. Save
  17. Close Editor
  18. Reopen Editor
  19. Open the map that was created
  20. Click actor

Result: The element that was created will no longer be added to the TMap
Expected: The blueprint would have saved the blueprint and all changes that were made to the blueprint when "Save Current" was used (see description for details on reproducing the issue from scratch)

Steps to Reproduce
  1. Download the attached project
  2. Open the project
  3. Play in editor

Result: An error message states that one or more blueprints have an unresolved compiler error and when opening the blueprint and hitting compile will bring back a variable that was missing
Expected: The blueprint would have saved the blueprint and all changes that were made to the blueprint when "Save Current" was used (see description for details on reproducing the issue from scratch)

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-57632 in the post.

3
Login to Vote

By Design
ComponentUE - Gameplay - Blueprint Editor
Affects Versions4.19.1
Target Fix4.20
CreatedApr 11, 2018
ResolvedMay 8, 2018
UpdatedMay 9, 2018