Launcher Build: UE4.17.1
In the latest launcher engine build, parent structs don’t inherit their child struct’s default values OR retain child struct values set within the parent structure when saving. See attached gif. Closing and reopening a parent structure which had default values set within a child struct will revert any changes made/saved.
NOTE: Tested this on a blank project (Also attached) and this issue still occurred. UE4.16 does not appear to have this problem with data tables having the default values set, but it did display issues with parent structures inheriting child struct default values. After merging to 4.17 the default values are no longer being set.
Had a look through answerhub and have seen some for older engine version but not for 4.17.
Steps to Repro
- Open Unreal Engine UE4.17.1
- Right click in the Content Browser > Blueprint > Create Structure called “Parent”
- Repeat Step 2 but call it “Child”
- In the Child struct, add a single Int variable and set the default to “-1”
- In the Parent struct, create a new variable as set the type to be your new child struct.
- Verify the default value (This will be Zero in the latest version). Set this again as “-1”
- Back in the Content Browser right click > Misc > Data Table and pick you Parent Structure
- In the data table, add a new row and verify the default value
Actual Result
The default value will be “0” instead of the “-1” set in the parent/child structure
Attached gif and Test Proj based on the above repro steps.