If I set a certain default value for a struct within another struct, it is reset to "None" and the value is not accepted. Below are detailed steps to reproduce as well as a minimal project.
Source: Answerhub
https://answers.unrealengine.com/questions/736247/default-value-for-bp-struct-within-bp-struct-not-s.html
(Test project provided below)
1 Create a BP Class derived from Character, call it "BaseCharacter".
2 Create a BP Class derived from BaseCharacter, call it "DerivedCharacter".
3 Create a BP struct named "InnerStruct" with a variable of Type "BaseCharacter Class". Set its default value to "BaseCharacter".
4 Create a BP struct named "OuterStruct" with a variable of Type "InnerStruct".
5 Open OuterStruct. Change the "InnerStruct" default within OuterStruct to "BaseCharacter". Save, close and reopen "OuterStruct".
Default value will be reset to "None" (expected: BaseCharacter).
Setting the default Value to "DerivedCharacter" will work as expected.
Head over to the existing Questions & Answers thread and let us know what's up.
3 |
Component | UE - Gameplay - Blueprint |
---|---|
Affects Versions | 4.18 |
Target Fix | 4.19 |
Created | Dec 15, 2017 |
---|---|
Resolved | Jan 2, 2018 |
Updated | Apr 27, 2018 |