Description

When a Struct is used as a Local Variable in a Blueprint Function Library, the defaults for its member variables are not saved. If, for example, I enter "3" for an Int member, and "Foo" for a String member, then the editor is closed and re-opened, the Int has reverted to "0" and the String is blank.

This was reported with User Defined Structs, but in my tests, also happens with existing C++ Structs.

(Defaults entered below will disappear when editor is closed and reopened)
[Image Removed]

Steps to Reproduce

1. Open attached project
2. Open NewFunctionLibrary
3. Select NewLocalVar_0 and enter default values for the int and string members
4. Save and close the editor
5. Reopen editor and check defaults that were entered in step #3

Result: User-set defaults are gone
Expected: User-set defaults should be saved

Have Comments or More Details?

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

4
Login to Vote

Cannot Reproduce
Fix Commit3503445
Main Commit3544050
CreatedJan 25, 2017
ResolvedJun 26, 2017
UpdatedJun 11, 2019
View Jira Issue